function Cg(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Jd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ef={exports:{}},Bi={},tf={exports:{}},O={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var po=Symbol.for("react.element"),Pg=Symbol.for("react.portal"),Tg=Symbol.for("react.fragment"),kg=Symbol.for("react.strict_mode"),Eg=Symbol.for("react.profiler"),Ng=Symbol.for("react.provider"),Ag=Symbol.for("react.context"),Mg=Symbol.for("react.forward_ref"),Rg=Symbol.for("react.suspense"),jg=Symbol.for("react.memo"),Lg=Symbol.for("react.lazy"),ju=Symbol.iterator;function Dg(e){return e===null||typeof e!="object"?null:(e=ju&&e[ju]||e["@@iterator"],typeof e=="function"?e:null)}var nf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},rf=Object.assign,of={};function dr(e,t,n){this.props=e,this.context=t,this.refs=of,this.updater=n||nf}dr.prototype.isReactComponent={};dr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};dr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function sf(){}sf.prototype=dr.prototype;function da(e,t,n){this.props=e,this.context=t,this.refs=of,this.updater=n||nf}var fa=da.prototype=new sf;fa.constructor=da;rf(fa,dr.prototype);fa.isPureReactComponent=!0;var Lu=Array.isArray,lf=Object.prototype.hasOwnProperty,pa={current:null},af={key:!0,ref:!0,__self:!0,__source:!0};function uf(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)lf.call(t,r)&&!af.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1>>1,B=A[V];if(0>>1;Vo(Ln,I))Oeo(sn,Ln)?(A[V]=sn,A[Oe]=I,V=Oe):(A[V]=Ln,A[Ie]=I,V=Ie);else if(Oeo(sn,I))A[V]=sn,A[Oe]=I,V=Oe;else break e}}return j}function o(A,j){var I=A.sortIndex-j.sortIndex;return I!==0?I:A.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],c=1,d=null,f=3,m=!1,v=!1,y=!1,C=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(A){for(var j=n(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=A)r(u),j.sortIndex=j.expirationTime,t(a,j);else break;j=n(u)}}function w(A){if(y=!1,h(A),!v)if(n(a)!==null)v=!0,z(P);else{var j=n(u);j!==null&&se(w,j.startTime-A)}}function P(A,j){v=!1,y&&(y=!1,g(E),E=-1),m=!0;var I=f;try{for(h(j),d=n(a);d!==null&&(!(d.expirationTime>j)||A&&!$());){var V=d.callback;if(typeof V=="function"){d.callback=null,f=d.priorityLevel;var B=V(d.expirationTime<=j);j=e.unstable_now(),typeof B=="function"?d.callback=B:d===n(a)&&r(a),h(j)}else r(a);d=n(a)}if(d!==null)var H=!0;else{var Ie=n(u);Ie!==null&&se(w,Ie.startTime-j),H=!1}return H}finally{d=null,f=I,m=!1}}var k=!1,T=null,E=-1,L=5,D=-1;function $(){return!(e.unstable_now()-DA||125V?(A.sortIndex=I,t(u,A),n(a)===null&&A===n(u)&&(y?(g(E),E=-1):y=!0,se(w,I-V))):(A.sortIndex=B,t(a,A),v||m||(v=!0,z(P))),A},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(A){var j=f;return function(){var I=f;f=j;try{return A.apply(this,arguments)}finally{f=I}}}})(hf);pf.exports=hf;var Hg=pf.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Gg=S,$e=Hg;function N(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),el=Object.prototype.hasOwnProperty,Kg=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Vu={},bu={};function Qg(e){return el.call(bu,e)?!0:el.call(Vu,e)?!1:Kg.test(e)?bu[e]=!0:(Vu[e]=!0,!1)}function Yg(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Xg(e,t,n,r){if(t===null||typeof t>"u"||Yg(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Me(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var ve={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ve[e]=new Me(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ve[t]=new Me(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ve[e]=new Me(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ve[e]=new Me(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ve[e]=new Me(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ve[e]=new Me(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ve[e]=new Me(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ve[e]=new Me(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ve[e]=new Me(e,5,!1,e.toLowerCase(),null,!1,!1)});var ma=/[\-:]([a-z])/g;function ga(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ma,ga);ve[t]=new Me(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ma,ga);ve[t]=new Me(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ma,ga);ve[t]=new Me(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ve[e]=new Me(e,1,!1,e.toLowerCase(),null,!1,!1)});ve.xlinkHref=new Me("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ve[e]=new Me(e,1,!1,e.toLowerCase(),null,!0,!0)});function ya(e,t,n,r){var o=ve.hasOwnProperty(t)?ve[t]:null;(o!==null?o.type!==0:r||!(2l||o[s]!==i[l]){var a=` `+o[s].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{ms=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Er(e):""}function Zg(e){switch(e.tag){case 5:return Er(e.type);case 16:return Er("Lazy");case 13:return Er("Suspense");case 19:return Er("SuspenseList");case 0:case 2:case 15:return e=gs(e.type,!1),e;case 11:return e=gs(e.type.render,!1),e;case 1:return e=gs(e.type,!0),e;default:return""}}function ol(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case bn:return"Fragment";case Vn:return"Portal";case tl:return"Profiler";case va:return"StrictMode";case nl:return"Suspense";case rl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case yf:return(e.displayName||"Context")+".Consumer";case gf:return(e._context.displayName||"Context")+".Provider";case xa:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case wa:return t=e.displayName||null,t!==null?t:ol(e.type)||"Memo";case Dt:t=e._payload,e=e._init;try{return ol(e(t))}catch{}}return null}function qg(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ol(t);case 8:return t===va?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Xt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function xf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Jg(e){var t=xf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Eo(e){e._valueTracker||(e._valueTracker=Jg(e))}function wf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=xf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ai(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function il(e,t){var n=t.checked;return re({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Iu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Xt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Sf(e,t){t=t.checked,t!=null&&ya(e,"checked",t,!1)}function sl(e,t){Sf(e,t);var n=Xt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ll(e,t.type,n):t.hasOwnProperty("defaultValue")&&ll(e,t.type,Xt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ou(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ll(e,t,n){(t!=="number"||ai(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Nr=Array.isArray;function Xn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=No.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Gr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Lr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ey=["Webkit","ms","Moz","O"];Object.keys(Lr).forEach(function(e){ey.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Lr[t]=Lr[e]})});function kf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Lr.hasOwnProperty(e)&&Lr[e]?(""+t).trim():t+"px"}function Ef(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=kf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var ty=re({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function cl(e,t){if(t){if(ty[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function dl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var fl=null;function Sa(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var pl=null,Zn=null,qn=null;function Bu(e){if(e=go(e)){if(typeof pl!="function")throw Error(N(280));var t=e.stateNode;t&&(t=Gi(t),pl(e.stateNode,e.type,t))}}function Nf(e){Zn?qn?qn.push(e):qn=[e]:Zn=e}function Af(){if(Zn){var e=Zn,t=qn;if(qn=Zn=null,Bu(e),t)for(e=0;e>>=0,e===0?32:31-(fy(e)/py|0)|0}var Ao=64,Mo=4194304;function Ar(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function fi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~o;l!==0?r=Ar(l):(i&=s,i!==0&&(r=Ar(i)))}else s=n&~o,s!==0?r=Ar(s):i!==0&&(r=Ar(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ho(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-st(t),e[t]=n}function yy(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Vr),Xu=String.fromCharCode(32),Zu=!1;function Qf(e,t){switch(e){case"keyup":return Hy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _n=!1;function Ky(e,t){switch(e){case"compositionend":return Yf(t);case"keypress":return t.which!==32?null:(Zu=!0,Xu);case"textInput":return e=t.data,e===Xu&&Zu?null:e;default:return null}}function Qy(e,t){if(_n)return e==="compositionend"||!Ma&&Qf(e,t)?(e=Gf(),Zo=Ea=Ot=null,_n=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=tc(n)}}function Jf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Jf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ep(){for(var e=window,t=ai();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ai(e.document)}return t}function Ra(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function rv(e){var t=ep(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Jf(n.ownerDocument.documentElement,n)){if(r!==null&&Ra(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=nc(n,i);var s=nc(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,In=null,xl=null,_r=null,wl=!1;function rc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;wl||In==null||In!==ai(r)||(r=In,"selectionStart"in r&&Ra(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),_r&&qr(_r,r)||(_r=r,r=mi(xl,"onSelect"),0zn||(e.current=El[zn],El[zn]=null,zn--)}function G(e,t){zn++,El[zn]=e.current,e.current=t}var Zt={},Pe=nn(Zt),De=nn(!1),wn=Zt;function rr(e,t){var n=e.type.contextTypes;if(!n)return Zt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ve(e){return e=e.childContextTypes,e!=null}function yi(){Y(De),Y(Pe)}function cc(e,t,n){if(Pe.current!==Zt)throw Error(N(168));G(Pe,t),G(De,n)}function up(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(N(108,qg(e)||"Unknown",o));return re({},n,r)}function vi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Zt,wn=Pe.current,G(Pe,e),G(De,De.current),!0}function dc(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=up(e,t,wn),r.__reactInternalMemoizedMergedChildContext=e,Y(De),Y(Pe),G(Pe,e)):Y(De),G(De,n)}var yt=null,Ki=!1,Rs=!1;function cp(e){yt===null?yt=[e]:yt.push(e)}function mv(e){Ki=!0,cp(e)}function rn(){if(!Rs&&yt!==null){Rs=!0;var e=0,t=W;try{var n=yt;for(W=1;e>=s,o-=s,vt=1<<32-st(t)+o|n<E?(L=T,T=null):L=T.sibling;var D=f(g,T,h[E],w);if(D===null){T===null&&(T=L);break}e&&T&&D.alternate===null&&t(g,T),p=i(D,p,E),k===null?P=D:k.sibling=D,k=D,T=L}if(E===h.length)return n(g,T),q&&un(g,E),P;if(T===null){for(;EE?(L=T,T=null):L=T.sibling;var $=f(g,T,D.value,w);if($===null){T===null&&(T=L);break}e&&T&&$.alternate===null&&t(g,T),p=i($,p,E),k===null?P=$:k.sibling=$,k=$,T=L}if(D.done)return n(g,T),q&&un(g,E),P;if(T===null){for(;!D.done;E++,D=h.next())D=d(g,D.value,w),D!==null&&(p=i(D,p,E),k===null?P=D:k.sibling=D,k=D);return q&&un(g,E),P}for(T=r(g,T);!D.done;E++,D=h.next())D=m(T,g,E,D.value,w),D!==null&&(e&&D.alternate!==null&&T.delete(D.key===null?E:D.key),p=i(D,p,E),k===null?P=D:k.sibling=D,k=D);return e&&T.forEach(function(b){return t(g,b)}),q&&un(g,E),P}function C(g,p,h,w){if(typeof h=="object"&&h!==null&&h.type===bn&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case ko:e:{for(var P=h.key,k=p;k!==null;){if(k.key===P){if(P=h.type,P===bn){if(k.tag===7){n(g,k.sibling),p=o(k,h.props.children),p.return=g,g=p;break e}}else if(k.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Dt&&hc(P)===k.type){n(g,k.sibling),p=o(k,h.props),p.ref=xr(g,k,h),p.return=g,g=p;break e}n(g,k);break}else t(g,k);k=k.sibling}h.type===bn?(p=xn(h.props.children,g.mode,w,h.key),p.return=g,g=p):(w=ii(h.type,h.key,h.props,null,g.mode,w),w.ref=xr(g,p,h),w.return=g,g=w)}return s(g);case Vn:e:{for(k=h.key;p!==null;){if(p.key===k)if(p.tag===4&&p.stateNode.containerInfo===h.containerInfo&&p.stateNode.implementation===h.implementation){n(g,p.sibling),p=o(p,h.children||[]),p.return=g,g=p;break e}else{n(g,p);break}else t(g,p);p=p.sibling}p=Os(h,g.mode,w),p.return=g,g=p}return s(g);case Dt:return k=h._init,C(g,p,k(h._payload),w)}if(Nr(h))return v(g,p,h,w);if(hr(h))return y(g,p,h,w);_o(g,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,p!==null&&p.tag===6?(n(g,p.sibling),p=o(p,h),p.return=g,g=p):(n(g,p),p=Is(h,g.mode,w),p.return=g,g=p),s(g)):n(g,p)}return C}var ir=hp(!0),mp=hp(!1),Si=nn(null),Ci=null,$n=null,Va=null;function ba(){Va=$n=Ci=null}function _a(e){var t=Si.current;Y(Si),e._currentValue=t}function Ml(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function er(e,t){Ci=e,Va=$n=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Le=!0),e.firstContext=null)}function Je(e){var t=e._currentValue;if(Va!==e)if(e={context:e,memoizedValue:t,next:null},$n===null){if(Ci===null)throw Error(N(308));$n=e,Ci.dependencies={lanes:0,firstContext:e}}else $n=$n.next=e;return t}var hn=null;function Ia(e){hn===null?hn=[e]:hn.push(e)}function gp(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Ia(t)):(n.next=o.next,o.next=n),t.interleaved=n,Et(e,r)}function Et(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Vt=!1;function Oa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function yp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function St(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Wt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,U&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Et(e,n)}return o=r.interleaved,o===null?(t.next=t,Ia(r)):(t.next=o.next,o.next=t),r.interleaved=t,Et(e,n)}function Jo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Pa(e,n)}}function mc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Pi(e,t,n,r){var o=e.updateQueue;Vt=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var a=l,u=a.next;a.next=null,s===null?i=u:s.next=u,s=a;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==s&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(i!==null){var d=o.baseState;s=0,c=u=a=null,l=i;do{var f=l.lane,m=l.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:m,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var v=e,y=l;switch(f=t,m=n,y.tag){case 1:if(v=y.payload,typeof v=="function"){d=v.call(m,d,f);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=y.payload,f=typeof v=="function"?v.call(m,d,f):v,f==null)break e;d=re({},d,f);break e;case 2:Vt=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[l]:f.push(l))}else m={eventTime:m,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=m,a=d):c=c.next=m,s|=f;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;f=l,l=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(1);if(c===null&&(a=d),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Pn|=s,e.lanes=s,e.memoizedState=d}}function gc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Ls.transition;Ls.transition={};try{e(!1),t()}finally{W=n,Ls.transition=r}}function Vp(){return et().memoizedState}function xv(e,t,n){var r=Gt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},bp(e))_p(t,n);else if(n=gp(e,t,n,r),n!==null){var o=Ne();lt(n,e,r,o),Ip(n,t,r)}}function wv(e,t,n){var r=Gt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(bp(e))_p(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,l=i(s,n);if(o.hasEagerState=!0,o.eagerState=l,at(l,s)){var a=t.interleaved;a===null?(o.next=o,Ia(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=gp(e,t,o,r),n!==null&&(o=Ne(),lt(n,e,r,o),Ip(n,t,r))}}function bp(e){var t=e.alternate;return e===ne||t!==null&&t===ne}function _p(e,t){Ir=ki=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ip(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Pa(e,n)}}var Ei={readContext:Je,useCallback:xe,useContext:xe,useEffect:xe,useImperativeHandle:xe,useInsertionEffect:xe,useLayoutEffect:xe,useMemo:xe,useReducer:xe,useRef:xe,useState:xe,useDebugValue:xe,useDeferredValue:xe,useTransition:xe,useMutableSource:xe,useSyncExternalStore:xe,useId:xe,unstable_isNewReconciler:!1},Sv={readContext:Je,useCallback:function(e,t){return ct().memoizedState=[e,t===void 0?null:t],e},useContext:Je,useEffect:vc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ti(4194308,4,Mp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ti(4194308,4,e,t)},useInsertionEffect:function(e,t){return ti(4,2,e,t)},useMemo:function(e,t){var n=ct();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ct();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=xv.bind(null,ne,e),[r.memoizedState,e]},useRef:function(e){var t=ct();return e={current:e},t.memoizedState=e},useState:yc,useDebugValue:Ga,useDeferredValue:function(e){return ct().memoizedState=e},useTransition:function(){var e=yc(!1),t=e[0];return e=vv.bind(null,e[1]),ct().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ne,o=ct();if(q){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),me===null)throw Error(N(349));Cn&30||Sp(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,vc(Pp.bind(null,r,i,e),[e]),r.flags|=2048,so(9,Cp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=ct(),t=me.identifierPrefix;if(q){var n=xt,r=vt;n=(r&~(1<<32-st(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=oo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[dt]=t,e[to]=r,Kp(e,t,!1,!1),t.stateNode=e;e:{switch(s=dl(n,r),n){case"dialog":Q("cancel",e),Q("close",e),o=r;break;case"iframe":case"object":case"embed":Q("load",e),o=r;break;case"video":case"audio":for(o=0;oar&&(t.flags|=128,r=!0,wr(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ti(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),wr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!q)return we(t),null}else 2*le()-i.renderingStartTime>ar&&n!==1073741824&&(t.flags|=128,r=!0,wr(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=le(),t.sibling=null,n=ee.current,G(ee,r?n&1|2:n&1),t):(we(t),null);case 22:case 23:return qa(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Fe&1073741824&&(we(t),t.subtreeFlags&6&&(t.flags|=8192)):we(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function Mv(e,t){switch(La(t),t.tag){case 1:return Ve(t.type)&&yi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return sr(),Y(De),Y(Pe),Ba(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return za(t),null;case 13:if(Y(ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));or()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(ee),null;case 4:return sr(),null;case 10:return _a(t.type._context),null;case 22:case 23:return qa(),null;case 24:return null;default:return null}}var Oo=!1,Ce=!1,Rv=typeof WeakSet=="function"?WeakSet:Set,M=null;function Wn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){oe(e,t,r)}else n.current=null}function Ol(e,t,n){try{n()}catch(r){oe(e,t,r)}}var Mc=!1;function jv(e,t){if(Sl=pi,e=ep(),Ra(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var m;d!==n||o!==0&&d.nodeType!==3||(l=s+o),d!==i||r!==0&&d.nodeType!==3||(a=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(m=d.firstChild)!==null;)f=d,d=m;for(;;){if(d===e)break t;if(f===n&&++u===o&&(l=s),f===i&&++c===r&&(a=s),(m=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=m}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Cl={focusedElem:e,selectionRange:n},pi=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,C=v.memoizedState,g=t.stateNode,p=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:rt(t.type,y),C);g.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(w){oe(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return v=Mc,Mc=!1,v}function Or(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Ol(t,n,i)}o=o.next}while(o!==r)}}function Xi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Fl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Xp(e){var t=e.alternate;t!==null&&(e.alternate=null,Xp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[dt],delete t[to],delete t[kl],delete t[pv],delete t[hv])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Zp(e){return e.tag===5||e.tag===3||e.tag===4}function Rc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Zp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function zl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=gi));else if(r!==4&&(e=e.child,e!==null))for(zl(e,t,n),e=e.sibling;e!==null;)zl(e,t,n),e=e.sibling}function Bl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Bl(e,t,n),e=e.sibling;e!==null;)Bl(e,t,n),e=e.sibling}var ge=null,ot=!1;function Rt(e,t,n){for(n=n.child;n!==null;)qp(e,t,n),n=n.sibling}function qp(e,t,n){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(Ui,n)}catch{}switch(n.tag){case 5:Ce||Wn(n,t);case 6:var r=ge,o=ot;ge=null,Rt(e,t,n),ge=r,ot=o,ge!==null&&(ot?(e=ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ge.removeChild(n.stateNode));break;case 18:ge!==null&&(ot?(e=ge,n=n.stateNode,e.nodeType===8?Ms(e.parentNode,n):e.nodeType===1&&Ms(e,n),Xr(e)):Ms(ge,n.stateNode));break;case 4:r=ge,o=ot,ge=n.stateNode.containerInfo,ot=!0,Rt(e,t,n),ge=r,ot=o;break;case 0:case 11:case 14:case 15:if(!Ce&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Ol(n,t,s),o=o.next}while(o!==r)}Rt(e,t,n);break;case 1:if(!Ce&&(Wn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){oe(n,t,l)}Rt(e,t,n);break;case 21:Rt(e,t,n);break;case 22:n.mode&1?(Ce=(r=Ce)||n.memoizedState!==null,Rt(e,t,n),Ce=r):Rt(e,t,n);break;default:Rt(e,t,n)}}function jc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Rv),t.forEach(function(r){var o=zv.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function tt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=le()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Dv(r/1960))-r,10e?16:e,Ft===null)var r=!1;else{if(e=Ft,Ft=null,Mi=0,U&6)throw Error(N(331));var o=U;for(U|=4,M=e.current;M!==null;){var i=M,s=i.child;if(M.flags&16){var l=i.deletions;if(l!==null){for(var a=0;ale()-Xa?vn(e,0):Ya|=n),be(e,t)}function sh(e,t){t===0&&(e.mode&1?(t=Mo,Mo<<=1,!(Mo&130023424)&&(Mo=4194304)):t=1);var n=Ne();e=Et(e,t),e!==null&&(ho(e,t,n),be(e,n))}function Fv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),sh(e,n)}function zv(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(N(314))}r!==null&&r.delete(t),sh(e,n)}var lh;lh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||De.current)Le=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Le=!1,Nv(e,t,n);Le=!!(e.flags&131072)}else Le=!1,q&&t.flags&1048576&&dp(t,wi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ni(e,t),e=t.pendingProps;var o=rr(t,Pe.current);er(t,n),o=$a(null,t,r,e,o,n);var i=Wa();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ve(r)?(i=!0,vi(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Oa(t),o.updater=Yi,t.stateNode=o,o._reactInternals=t,jl(t,r,e,n),t=Vl(null,t,r,!0,i,n)):(t.tag=0,q&&i&&ja(t),Ee(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ni(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Uv(r),e=rt(r,e),o){case 0:t=Dl(null,t,r,e,n);break e;case 1:t=Ec(null,t,r,e,n);break e;case 11:t=Tc(null,t,r,e,n);break e;case 14:t=kc(null,t,r,rt(r.type,e),n);break e}throw Error(N(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:rt(r,o),Dl(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:rt(r,o),Ec(e,t,r,o,n);case 3:e:{if(Wp(t),e===null)throw Error(N(387));r=t.pendingProps,i=t.memoizedState,o=i.element,yp(e,t),Pi(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=lr(Error(N(423)),t),t=Nc(e,t,r,n,o);break e}else if(r!==o){o=lr(Error(N(424)),t),t=Nc(e,t,r,n,o);break e}else for(Be=$t(t.stateNode.containerInfo.firstChild),Ue=t,q=!0,it=null,n=mp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(or(),r===o){t=Nt(e,t,n);break e}Ee(e,t,r,n)}t=t.child}return t;case 5:return vp(t),e===null&&Al(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Pl(r,o)?s=null:i!==null&&Pl(r,i)&&(t.flags|=32),$p(e,t),Ee(e,t,s,n),t.child;case 6:return e===null&&Al(t),null;case 13:return Hp(e,t,n);case 4:return Fa(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ir(t,null,r,n):Ee(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:rt(r,o),Tc(e,t,r,o,n);case 7:return Ee(e,t,t.pendingProps,n),t.child;case 8:return Ee(e,t,t.pendingProps.children,n),t.child;case 12:return Ee(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,G(Si,r._currentValue),r._currentValue=s,i!==null)if(at(i.value,s)){if(i.children===o.children&&!De.current){t=Nt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=St(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Ml(i.return,n,t),l.lanes|=n;break}a=a.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(N(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Ml(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Ee(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,er(t,n),o=Je(o),r=r(o),t.flags|=1,Ee(e,t,r,n),t.child;case 14:return r=t.type,o=rt(r,t.pendingProps),o=rt(r.type,o),kc(e,t,r,o,n);case 15:return Bp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:rt(r,o),ni(e,t),t.tag=1,Ve(r)?(e=!0,vi(t)):e=!1,er(t,n),Op(t,r,o),jl(t,r,o,n),Vl(null,t,r,!0,e,n);case 19:return Gp(e,t,n);case 22:return Up(e,t,n)}throw Error(N(156,t.tag))};function ah(e,t){return bf(e,t)}function Bv(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ze(e,t,n,r){return new Bv(e,t,n,r)}function eu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Uv(e){if(typeof e=="function")return eu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===xa)return 11;if(e===wa)return 14}return 2}function Kt(e,t){var n=e.alternate;return n===null?(n=Ze(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ii(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")eu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case bn:return xn(n.children,o,i,t);case va:s=8,o|=8;break;case tl:return e=Ze(12,n,t,o|2),e.elementType=tl,e.lanes=i,e;case nl:return e=Ze(13,n,t,o),e.elementType=nl,e.lanes=i,e;case rl:return e=Ze(19,n,t,o),e.elementType=rl,e.lanes=i,e;case vf:return qi(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case gf:s=10;break e;case yf:s=9;break e;case xa:s=11;break e;case wa:s=14;break e;case Dt:s=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=Ze(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function xn(e,t,n,r){return e=Ze(7,e,r,t),e.lanes=n,e}function qi(e,t,n,r){return e=Ze(22,e,r,t),e.elementType=vf,e.lanes=n,e.stateNode={isHidden:!1},e}function Is(e,t,n){return e=Ze(6,e,null,t),e.lanes=n,e}function Os(e,t,n){return t=Ze(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $v(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vs(0),this.expirationTimes=vs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vs(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function tu(e,t,n,r,o,i,s,l,a){return e=new $v(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ze(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Oa(i),e}function Wv(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(fh)}catch(e){console.error(e)}}fh(),ff.exports=He;var rs=ff.exports;const Yv=Jd(rs);var Fc=rs;Js.createRoot=Fc.createRoot,Js.hydrateRoot=Fc.hydrateRoot;const ph=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),os=S.createContext({}),iu=S.createContext(null),is=typeof document<"u",Xv=is?S.useLayoutEffect:S.useEffect,hh=S.createContext({strict:!1}),su=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Zv="framerAppearId",mh="data-"+su(Zv);function qv(e,t,n,r){const{visualElement:o}=S.useContext(os),i=S.useContext(hh),s=S.useContext(iu),l=S.useContext(ph).reducedMotion,a=S.useRef();r=r||i.renderer,!a.current&&r&&(a.current=r(e,{visualState:t,parent:o,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:l}));const u=a.current;S.useInsertionEffect(()=>{u&&u.update(n,s)});const c=S.useRef(!!(n[mh]&&!window.HandoffComplete));return Xv(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),S.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}function Gn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Jv(e,t,n){return S.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Gn(n)&&(n.current=r))},[t])}function ao(e){return typeof e=="string"||Array.isArray(e)}function ss(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const lu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],au=["initial",...lu];function ls(e){return ss(e.animate)||au.some(t=>ao(e[t]))}function gh(e){return!!(ls(e)||e.variants)}function e0(e,t){if(ls(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ao(n)?n:void 0,animate:ao(r)?r:void 0}}return e.inherit!==!1?t:{}}function t0(e){const{initial:t,animate:n}=e0(e,S.useContext(os));return S.useMemo(()=>({initial:t,animate:n}),[zc(t),zc(n)])}function zc(e){return Array.isArray(e)?e.join(" "):e}const Bc={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},uo={};for(const e in Bc)uo[e]={isEnabled:t=>Bc[e].some(n=>!!t[n])};function n0(e){for(const t in e)uo[t]={...uo[t],...e[t]}}const yh=S.createContext({}),vh=S.createContext({}),r0=Symbol.for("motionComponentSymbol");function o0({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&n0(e);function i(l,a){let u;const c={...S.useContext(ph),...l,layoutId:i0(l)},{isStatic:d}=c,f=t0(l),m=r(l,d);if(!d&&is){f.visualElement=qv(o,m,c,t);const v=S.useContext(vh),y=S.useContext(hh).strict;f.visualElement&&(u=f.visualElement.loadFeatures(c,y,e,v))}return S.createElement(os.Provider,{value:f},u&&f.visualElement?S.createElement(u,{visualElement:f.visualElement,...c}):null,n(o,l,Jv(m,f.visualElement,a),m,d,f.visualElement))}const s=S.forwardRef(i);return s[r0]=o,s}function i0({layoutId:e}){const t=S.useContext(yh).id;return t&&e!==void 0?t+"-"+e:e}function s0(e){function t(r,o={}){return o0(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const l0=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function uu(e){return typeof e!="string"||e.includes("-")?!1:!!(l0.indexOf(e)>-1||/[A-Z]/.test(e))}const Li={};function a0(e){Object.assign(Li,e)}const vo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],An=new Set(vo);function xh(e,{layout:t,layoutId:n}){return An.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Li[e]||e==="opacity")}const _e=e=>!!(e&&e.getVelocity),u0={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},c0=vo.length;function d0(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),Sh=wh("--"),Gl=wh("var(--"),f0=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,p0=(e,t)=>t&&typeof e=="number"?t.transform(e):e,qt=(e,t,n)=>Math.min(Math.max(n,e),t),Mn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Br={...Mn,transform:e=>qt(0,1,e)},Bo={...Mn,default:1},Ur=e=>Math.round(e*1e5)/1e5,as=/(-)?([\d]*\.?[\d])+/g,Ch=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,h0=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function xo(e){return typeof e=="string"}const wo=e=>({test:t=>xo(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Lt=wo("deg"),ht=wo("%"),_=wo("px"),m0=wo("vh"),g0=wo("vw"),Uc={...ht,parse:e=>ht.parse(e)/100,transform:e=>ht.transform(e*100)},$c={...Mn,transform:Math.round},Ph={borderWidth:_,borderTopWidth:_,borderRightWidth:_,borderBottomWidth:_,borderLeftWidth:_,borderRadius:_,radius:_,borderTopLeftRadius:_,borderTopRightRadius:_,borderBottomRightRadius:_,borderBottomLeftRadius:_,width:_,maxWidth:_,height:_,maxHeight:_,size:_,top:_,right:_,bottom:_,left:_,padding:_,paddingTop:_,paddingRight:_,paddingBottom:_,paddingLeft:_,margin:_,marginTop:_,marginRight:_,marginBottom:_,marginLeft:_,rotate:Lt,rotateX:Lt,rotateY:Lt,rotateZ:Lt,scale:Bo,scaleX:Bo,scaleY:Bo,scaleZ:Bo,skew:Lt,skewX:Lt,skewY:Lt,distance:_,translateX:_,translateY:_,translateZ:_,x:_,y:_,z:_,perspective:_,transformPerspective:_,opacity:Br,originX:Uc,originY:Uc,originZ:_,zIndex:$c,fillOpacity:Br,strokeOpacity:Br,numOctaves:$c};function cu(e,t,n,r){const{style:o,vars:i,transform:s,transformOrigin:l}=e;let a=!1,u=!1,c=!0;for(const d in t){const f=t[d];if(Sh(d)){i[d]=f;continue}const m=Ph[d],v=p0(f,m);if(An.has(d)){if(a=!0,s[d]=v,!c)continue;f!==(m.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,l[d]=v):o[d]=v}if(t.transform||(a||r?o.transform=d0(e.transform,n,c,r):o.transform&&(o.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:m=0}=l;o.transformOrigin=`${d} ${f} ${m}`}}const du=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Th(e,t,n){for(const r in t)!_e(t[r])&&!xh(r,n)&&(e[r]=t[r])}function y0({transformTemplate:e},t,n){return S.useMemo(()=>{const r=du();return cu(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function v0(e,t,n){const r=e.style||{},o={};return Th(o,r,e),Object.assign(o,y0(e,t,n)),e.transformValues?e.transformValues(o):o}function x0(e,t,n){const r={},o=v0(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const w0=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Di(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||w0.has(e)}let kh=e=>!Di(e);function S0(e){e&&(kh=t=>t.startsWith("on")?!Di(t):e(t))}try{S0(require("@emotion/is-prop-valid").default)}catch{}function C0(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(kh(o)||n===!0&&Di(o)||!t&&!Di(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Wc(e,t,n){return typeof e=="string"?e:_.transform(t+n*e)}function P0(e,t,n){const r=Wc(t,e.x,e.width),o=Wc(n,e.y,e.height);return`${r} ${o}`}const T0={offset:"stroke-dashoffset",array:"stroke-dasharray"},k0={offset:"strokeDashoffset",array:"strokeDasharray"};function E0(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?T0:k0;e[i.offset]=_.transform(-r);const s=_.transform(t),l=_.transform(n);e[i.array]=`${s} ${l}`}function fu(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:l=1,pathOffset:a=0,...u},c,d,f){if(cu(e,u,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:v,dimensions:y}=e;m.transform&&(y&&(v.transform=m.transform),delete m.transform),y&&(o!==void 0||i!==void 0||v.transform)&&(v.transformOrigin=P0(y,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),s!==void 0&&E0(m,s,l,a,!1)}const Eh=()=>({...du(),attrs:{}}),pu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function N0(e,t,n,r){const o=S.useMemo(()=>{const i=Eh();return fu(i,t,{enableHardwareAcceleration:!1},pu(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Th(i,e.style,e),o.style={...i,...o.style}}return o}function A0(e=!1){return(n,r,o,{latestValues:i},s)=>{const a=(uu(n)?N0:x0)(r,i,s,n),c={...C0(r,typeof n=="string",e),...a,ref:o},{children:d}=r,f=S.useMemo(()=>_e(d)?d.get():d,[d]);return S.createElement(n,{...c,children:f})}}function Nh(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const Ah=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Mh(e,t,n,r){Nh(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Ah.has(o)?o:su(o),t.attrs[o])}function hu(e,t){const{style:n}=e,r={};for(const o in n)(_e(n[o])||t.style&&_e(t.style[o])||xh(o,e))&&(r[o]=n[o]);return r}function Rh(e,t){const n=hu(e,t);for(const r in e)if(_e(e[r])||_e(t[r])){const o=vo.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}function mu(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}function M0(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const Vi=e=>Array.isArray(e),R0=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),j0=e=>Vi(e)?e[e.length-1]||0:e;function si(e){const t=_e(e)?e.get():e;return R0(t)?t.toValue():t}function L0({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:D0(r,o,i,e),renderState:t()};return n&&(s.mount=l=>n(r,l,s)),s}const jh=e=>(t,n)=>{const r=S.useContext(os),o=S.useContext(iu),i=()=>L0(e,t,r,o);return n?i():M0(i)};function D0(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=si(i[f]);let{initial:s,animate:l}=e;const a=ls(e),u=gh(e);t&&u&&!a&&e.inherit!==!1&&(s===void 0&&(s=t.initial),l===void 0&&(l=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?l:s;return d&&typeof d!="boolean"&&!ss(d)&&(Array.isArray(d)?d:[d]).forEach(m=>{const v=mu(e,m);if(!v)return;const{transitionEnd:y,transition:C,...g}=v;for(const p in g){let h=g[p];if(Array.isArray(h)){const w=c?h.length-1:0;h=h[w]}h!==null&&(o[p]=h)}for(const p in y)o[p]=y[p]}),o}const ie=e=>e;class Hc{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function V0(e){let t=new Hc,n=new Hc,r=0,o=!1,i=!1;const s=new WeakSet,l={schedule:(a,u=!1,c=!1)=>{const d=c&&o,f=d?t:n;return u&&s.add(a),f.add(a)&&d&&o&&(r=t.order.length),a},cancel:a=>{n.remove(a),s.delete(a)},process:a=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u(d[f]=V0(()=>n=!0),d),{}),s=d=>i[d].process(o),l=()=>{const d=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(d-o.timestamp,b0),1),o.timestamp=d,o.isProcessing=!0,Uo.forEach(s),o.isProcessing=!1,n&&t&&(r=!1,e(l))},a=()=>{n=!0,r=!0,o.isProcessing||e(l)};return{schedule:Uo.reduce((d,f)=>{const m=i[f];return d[f]=(v,y=!1,C=!1)=>(n||a(),m.schedule(v,y,C)),d},{}),cancel:d=>Uo.forEach(f=>i[f].cancel(d)),state:o,steps:i}}const{schedule:X,cancel:At,state:Se,steps:Fs}=_0(typeof requestAnimationFrame<"u"?requestAnimationFrame:ie,!0),I0={useVisualState:jh({scrapeMotionValuesFromProps:Rh,createRenderState:Eh,onMount:(e,t,{renderState:n,latestValues:r})=>{X.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),X.render(()=>{fu(n,r,{enableHardwareAcceleration:!1},pu(t.tagName),e.transformTemplate),Mh(t,n)})}})},O0={useVisualState:jh({scrapeMotionValuesFromProps:hu,createRenderState:du})};function F0(e,{forwardMotionProps:t=!1},n,r){return{...uu(e)?I0:O0,preloadedFeatures:n,useRender:A0(t),createVisualElement:r,Component:e}}function wt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Lh=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function us(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const z0=e=>t=>Lh(t)&&e(t,us(t));function Ct(e,t,n,r){return wt(e,t,z0(n),r)}const B0=(e,t)=>n=>t(e(n)),Qt=(...e)=>e.reduce(B0);function Dh(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Gc=Dh("dragHorizontal"),Kc=Dh("dragVertical");function Vh(e){let t=!1;if(e==="y")t=Kc();else if(e==="x")t=Gc();else{const n=Gc(),r=Kc();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function bh(){const e=Vh(!0);return e?(e(),!1):!0}class on{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Qc(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),o=(i,s)=>{if(i.pointerType==="touch"||bh())return;const l=e.getProps();e.animationState&&l.whileHover&&e.animationState.setActive("whileHover",t),l[r]&&X.update(()=>l[r](i,s))};return Ct(e.current,n,o,{passive:!e.getProps()[r]})}class U0 extends on{mount(){this.unmount=Qt(Qc(this.node,!0),Qc(this.node,!1))}unmount(){}}class $0 extends on{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Qt(wt(this.node.current,"focus",()=>this.onFocus()),wt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const _h=(e,t)=>t?e===t?!0:_h(e,t.parentElement):!1;function zs(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,us(n))}class W0 extends on{constructor(){super(...arguments),this.removeStartListeners=ie,this.removeEndListeners=ie,this.removeAccessibleListeners=ie,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=Ct(window,"pointerup",(l,a)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps();X.update(()=>{!d&&!_h(this.node.current,l.target)?c&&c(l,a):u&&u(l,a)})},{passive:!(r.onTap||r.onPointerUp)}),s=Ct(window,"pointercancel",(l,a)=>this.cancelPress(l,a),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Qt(i,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=l=>{l.key!=="Enter"||!this.checkPressEnd()||zs("up",(a,u)=>{const{onTap:c}=this.node.getProps();c&&X.update(()=>c(a,u))})};this.removeEndListeners(),this.removeEndListeners=wt(this.node.current,"keyup",s),zs("down",(l,a)=>{this.startPress(l,a)})},n=wt(this.node.current,"keydown",t),r=()=>{this.isPressing&&zs("cancel",(i,s)=>this.cancelPress(i,s))},o=wt(this.node.current,"blur",r);this.removeAccessibleListeners=Qt(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&X.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!bh()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&X.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Ct(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=wt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Qt(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Kl=new WeakMap,Bs=new WeakMap,H0=e=>{const t=Kl.get(e.target);t&&t(e)},G0=e=>{e.forEach(H0)};function K0({root:e,...t}){const n=e||document;Bs.has(n)||Bs.set(n,{});const r=Bs.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(G0,{root:e,...t})),r[o]}function Q0(e,t,n){const r=K0(t);return Kl.set(e,n),r.observe(e),()=>{Kl.delete(e),r.unobserve(e)}}const Y0={some:0,all:1};class X0 extends on{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:Y0[o]},l=a=>{const{isIntersecting:u}=a;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(a)};return Q0(this.node.current,s,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Z0(t,n))&&this.startObserver()}unmount(){}}function Z0({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const q0={inView:{Feature:X0},tap:{Feature:W0},focus:{Feature:$0},hover:{Feature:U0}};function Ih(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[r]=n.get()),t}function e1(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function cs(e,t,n){const r=e.getProps();return mu(r,t,n!==void 0?n:r.custom,J0(e),e1(e))}let t1=ie,gu=ie;const Yt=e=>e*1e3,Pt=e=>e/1e3,n1={current:!1},Oh=e=>Array.isArray(e)&&typeof e[0]=="number";function Fh(e){return!!(!e||typeof e=="string"&&zh[e]||Oh(e)||Array.isArray(e)&&e.every(Fh))}const Rr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,zh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Rr([0,.65,.55,1]),circOut:Rr([.55,0,1,.45]),backIn:Rr([.31,.01,.66,-.59]),backOut:Rr([.33,1.53,.69,.99])};function Bh(e){if(e)return Oh(e)?Rr(e):Array.isArray(e)?e.map(Bh):zh[e]}function r1(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:s="loop",ease:l,times:a}={}){const u={[t]:n};a&&(u.offset=a);const c=Bh(l);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}function o1(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const Uh=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,i1=1e-7,s1=12;function l1(e,t,n,r,o){let i,s,l=0;do s=t+(n-t)/2,i=Uh(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>i1&&++ll1(i,0,1,e,n);return i=>i===0||i===1?i:Uh(o(i),t,r)}const a1=So(.42,0,1,1),u1=So(0,0,.58,1),$h=So(.42,0,.58,1),c1=e=>Array.isArray(e)&&typeof e[0]!="number",Wh=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Hh=e=>t=>1-e(1-t),yu=e=>1-Math.sin(Math.acos(e)),Gh=Hh(yu),d1=Wh(yu),Kh=So(.33,1.53,.69,.99),vu=Hh(Kh),f1=Wh(vu),p1=e=>(e*=2)<1?.5*vu(e):.5*(2-Math.pow(2,-10*(e-1))),h1={linear:ie,easeIn:a1,easeInOut:$h,easeOut:u1,circIn:yu,circInOut:d1,circOut:Gh,backIn:vu,backInOut:f1,backOut:Kh,anticipate:p1},Yc=e=>{if(Array.isArray(e)){gu(e.length===4);const[t,n,r,o]=e;return So(t,n,r,o)}else if(typeof e=="string")return h1[e];return e},xu=(e,t)=>n=>!!(xo(n)&&h0.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Qh=(e,t,n)=>r=>{if(!xo(r))return r;const[o,i,s,l]=r.match(as);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},m1=e=>qt(0,255,e),Us={...Mn,transform:e=>Math.round(m1(e))},gn={test:xu("rgb","red"),parse:Qh("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Us.transform(e)+", "+Us.transform(t)+", "+Us.transform(n)+", "+Ur(Br.transform(r))+")"};function g1(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Ql={test:xu("#"),parse:g1,transform:gn.transform},Kn={test:xu("hsl","hue"),parse:Qh("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ht.transform(Ur(t))+", "+ht.transform(Ur(n))+", "+Ur(Br.transform(r))+")"},Te={test:e=>gn.test(e)||Ql.test(e)||Kn.test(e),parse:e=>gn.test(e)?gn.parse(e):Kn.test(e)?Kn.parse(e):Ql.parse(e),transform:e=>xo(e)?e:e.hasOwnProperty("red")?gn.transform(e):Kn.transform(e)},te=(e,t,n)=>-n*e+n*t+e;function $s(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function y1({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const l=n<.5?n*(1+t):n+t-n*t,a=2*n-l;o=$s(a,l,e+1/3),i=$s(a,l,e),s=$s(a,l,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}const Ws=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},v1=[Ql,gn,Kn],x1=e=>v1.find(t=>t.test(e));function Xc(e){const t=x1(e);let n=t.parse(e);return t===Kn&&(n=y1(n)),n}const Yh=(e,t)=>{const n=Xc(e),r=Xc(t),o={...n};return i=>(o.red=Ws(n.red,r.red,i),o.green=Ws(n.green,r.green,i),o.blue=Ws(n.blue,r.blue,i),o.alpha=te(n.alpha,r.alpha,i),gn.transform(o))};function w1(e){var t,n;return isNaN(e)&&xo(e)&&(((t=e.match(as))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Ch))===null||n===void 0?void 0:n.length)||0)>0}const Xh={regex:f0,countKey:"Vars",token:"${v}",parse:ie},Zh={regex:Ch,countKey:"Colors",token:"${c}",parse:Te.parse},qh={regex:as,countKey:"Numbers",token:"${n}",parse:Mn.parse};function Hs(e,{regex:t,countKey:n,token:r,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+n]=i.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...i.map(o)))}function bi(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&Hs(n,Xh),Hs(n,Zh),Hs(n,qh),n}function Jh(e){return bi(e).values}function em(e){const{values:t,numColors:n,numVars:r,tokenised:o}=bi(e),i=t.length;return s=>{let l=o;for(let a=0;atypeof e=="number"?0:e;function C1(e){const t=Jh(e);return em(e)(t.map(S1))}const Jt={test:w1,parse:Jh,createTransformer:em,getAnimatableNone:C1},tm=(e,t)=>n=>`${n>0?t:e}`;function nm(e,t){return typeof e=="number"?n=>te(e,t,n):Te.test(e)?Yh(e,t):e.startsWith("var(")?tm(e,t):om(e,t)}const rm=(e,t)=>{const n=[...e],r=n.length,o=e.map((i,s)=>nm(i,t[s]));return i=>{for(let s=0;s{const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=nm(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}},om=(e,t)=>{const n=Jt.createTransformer(t),r=bi(e),o=bi(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?Qt(rm(r.values,o.values),n):tm(e,t)},co=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Zc=(e,t)=>n=>te(e,t,n);function T1(e){return typeof e=="number"?Zc:typeof e=="string"?Te.test(e)?Yh:om:Array.isArray(e)?rm:typeof e=="object"?P1:Zc}function k1(e,t,n){const r=[],o=n||T1(e[0]),i=e.length-1;for(let s=0;st[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=k1(t,r,o),l=s.length,a=u=>{let c=0;if(l>1)for(;ca(qt(e[0],e[i-1],u)):a}function E1(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=co(0,t,r);e.push(te(n,1,o))}}function N1(e){const t=[0];return E1(t,e.length-1),t}function A1(e,t){return e.map(n=>n*t)}function M1(e,t){return e.map(()=>t||$h).splice(0,e.length-1)}function _i({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=c1(r)?r.map(Yc):Yc(r),i={done:!1,value:t[0]},s=A1(n&&n.length===t.length?n:N1(t),e),l=im(s,t,{ease:Array.isArray(o)?o:M1(t,o)});return{calculatedDuration:e,next:a=>(i.value=l(a),i.done=a>=e,i)}}function sm(e,t){return t?e*(1e3/t):0}const R1=5;function lm(e,t,n){const r=Math.max(t-R1,0);return sm(n-e(r),t-r)}const Gs=.001,j1=.01,qc=10,L1=.05,D1=1;function V1({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;t1(e<=Yt(qc));let s=1-t;s=qt(L1,D1,s),e=qt(j1,qc,Pt(e)),s<1?(o=u=>{const c=u*s,d=c*e,f=c-n,m=Yl(u,s),v=Math.exp(-d);return Gs-f/m*v},i=u=>{const d=u*s*e,f=d*n+n,m=Math.pow(s,2)*Math.pow(u,2)*e,v=Math.exp(-d),y=Yl(Math.pow(u,2),s);return(-o(u)+Gs>0?-1:1)*((f-m)*v)/y}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-Gs+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const l=5/e,a=_1(o,i,l);if(e=Yt(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(a,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const b1=12;function _1(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function F1(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Jc(e,O1)&&Jc(e,I1)){const n=V1(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function am({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:l,damping:a,mass:u,duration:c,velocity:d,isResolvedFromDuration:f}=F1({...r,velocity:-Pt(r.velocity||0)}),m=d||0,v=a/(2*Math.sqrt(l*u)),y=i-o,C=Pt(Math.sqrt(l/u)),g=Math.abs(y)<5;n||(n=g?.01:2),t||(t=g?.005:.5);let p;if(v<1){const h=Yl(C,v);p=w=>{const P=Math.exp(-v*C*w);return i-P*((m+v*C*y)/h*Math.sin(h*w)+y*Math.cos(h*w))}}else if(v===1)p=h=>i-Math.exp(-C*h)*(y+(m+C*y)*h);else{const h=C*Math.sqrt(v*v-1);p=w=>{const P=Math.exp(-v*C*w),k=Math.min(h*w,300);return i-P*((m+v*C*y)*Math.sinh(k)+h*y*Math.cosh(k))/h}}return{calculatedDuration:f&&c||null,next:h=>{const w=p(h);if(f)s.done=h>=c;else{let P=m;h!==0&&(v<1?P=lm(p,h,w):P=0);const k=Math.abs(P)<=n,T=Math.abs(i-w)<=t;s.done=k&&T}return s.value=s.done?i:w,s}}}function ed({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:l,max:a,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},m=E=>l!==void 0&&Ea,v=E=>l===void 0?a:a===void 0||Math.abs(l-E)-y*Math.exp(-E/r),h=E=>g+p(E),w=E=>{const L=p(E),D=h(E);f.done=Math.abs(L)<=u,f.value=f.done?g:D};let P,k;const T=E=>{m(f.value)&&(P=E,k=am({keyframes:[f.value,v(f.value)],velocity:lm(h,E,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return T(0),{calculatedDuration:null,next:E=>{let L=!1;return!k&&P===void 0&&(L=!0,w(E),T(E)),P!==void 0&&E>P?k.next(E-P):(!L&&w(E),f)}}}const z1=e=>{const t=({timestamp:n})=>e(n);return{start:()=>X.update(t,!0),stop:()=>At(t),now:()=>Se.isProcessing?Se.timestamp:performance.now()}},td=2e4;function nd(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=td?1/0:t}const B1={decay:ed,inertia:ed,tween:_i,keyframes:_i,spring:am};function Ii({autoplay:e=!0,delay:t=0,driver:n=z1,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:l="loop",onPlay:a,onStop:u,onComplete:c,onUpdate:d,...f}){let m=1,v=!1,y,C;const g=()=>{C=new Promise(V=>{y=V})};g();let p;const h=B1[o]||_i;let w;h!==_i&&typeof r[0]!="number"&&(w=im([0,100],r,{clamp:!1}),r=[0,100]);const P=h({...f,keyframes:r});let k;l==="mirror"&&(k=h({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let T="idle",E=null,L=null,D=null;P.calculatedDuration===null&&i&&(P.calculatedDuration=nd(P));const{calculatedDuration:$}=P;let b=1/0,J=1/0;$!==null&&(b=$+s,J=b*(i+1)-s);let R=0;const Z=V=>{if(L===null)return;m>0&&(L=Math.min(L,V)),m<0&&(L=Math.min(V-J/m,L)),E!==null?R=E:R=Math.round(V-L)*m;const B=R-t*(m>=0?1:-1),H=m>=0?B<0:B>J;R=Math.max(B,0),T==="finished"&&E===null&&(R=J);let Ie=R,Ln=P;if(i){const fs=Math.min(R,J)/b;let Po=Math.floor(fs),ln=fs%1;!ln&&fs>=1&&(ln=1),ln===1&&Po--,Po=Math.min(Po,i+1),!!(Po%2)&&(l==="reverse"?(ln=1-ln,s&&(ln-=s/b)):l==="mirror"&&(Ln=k)),Ie=qt(0,1,ln)*b}const Oe=H?{done:!1,value:r[0]}:Ln.next(Ie);w&&(Oe.value=w(Oe.value));let{done:sn}=Oe;!H&&$!==null&&(sn=m>=0?R>=J:R<=0);const Sg=E===null&&(T==="finished"||T==="running"&&sn);return d&&d(Oe.value),Sg&&A(),Oe},z=()=>{p&&p.stop(),p=void 0},se=()=>{T="idle",z(),y(),g(),L=D=null},A=()=>{T="finished",c&&c(),z(),y()},j=()=>{if(v)return;p||(p=n(Z));const V=p.now();a&&a(),E!==null?L=V-E:(!L||T==="finished")&&(L=V),T==="finished"&&g(),D=L,E=null,T="running",p.start()};e&&j();const I={then(V,B){return C.then(V,B)},get time(){return Pt(R)},set time(V){V=Yt(V),R=V,E!==null||!p||m===0?E=V:L=p.now()-V/m},get duration(){const V=P.calculatedDuration===null?nd(P):P.calculatedDuration;return Pt(V)},get speed(){return m},set speed(V){V===m||!p||(m=V,I.time=Pt(R))},get state(){return T},play:j,pause:()=>{T="paused",E=R},stop:()=>{v=!0,T!=="idle"&&(T="idle",u&&u(),se())},cancel:()=>{D!==null&&Z(D),se()},complete:()=>{T="finished"},sample:V=>(L=0,Z(V))};return I}function U1(e){let t;return()=>(t===void 0&&(t=e()),t)}const $1=U1(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),W1=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),$o=10,H1=2e4,G1=(e,t)=>t.type==="spring"||e==="backgroundColor"||!Fh(t.ease);function K1(e,t,{onUpdate:n,onComplete:r,...o}){if(!($1()&&W1.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let s=!1,l,a,u=!1;const c=()=>{a=new Promise(h=>{l=h})};c();let{keyframes:d,duration:f=300,ease:m,times:v}=o;if(G1(t,o)){const h=Ii({...o,repeat:0,delay:0});let w={done:!1,value:d[0]};const P=[];let k=0;for(;!w.done&&k{u=!1,y.cancel()},g=()=>{u=!0,X.update(C),l(),c()};return y.onfinish=()=>{u||(e.set(o1(d,o)),r&&r(),g())},{then(h,w){return a.then(h,w)},attachTimeline(h){return y.timeline=h,y.onfinish=null,ie},get time(){return Pt(y.currentTime||0)},set time(h){y.currentTime=Yt(h)},get speed(){return y.playbackRate},set speed(h){y.playbackRate=h},get duration(){return Pt(f)},play:()=>{s||(y.play(),At(C))},pause:()=>y.pause(),stop:()=>{if(s=!0,y.playState==="idle")return;const{currentTime:h}=y;if(h){const w=Ii({...o,autoplay:!1});e.setWithVelocity(w.sample(h-$o).value,w.sample(h).value,$o)}g()},complete:()=>{u||y.finish()},cancel:g}}function Q1({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:ie,pause:ie,stop:ie,then:i=>(i(),Promise.resolve()),cancel:ie,complete:ie});return t?Ii({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const Y1={type:"spring",stiffness:500,damping:25,restSpeed:10},X1=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Z1={type:"keyframes",duration:.8},q1={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},J1=(e,{keyframes:t})=>t.length>2?Z1:An.has(e)?e.startsWith("scale")?X1(t[1]):Y1:q1,Xl=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Jt.test(t)||t==="0")&&!t.startsWith("url(")),ex=new Set(["brightness","contrast","saturate","opacity"]);function tx(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(as)||[];if(!r)return e;const o=n.replace(r,"");let i=ex.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const nx=/([a-z-]*)\(.*?\)/g,Zl={...Jt,getAnimatableNone:e=>{const t=e.match(nx);return t?t.map(tx).join(" "):e}},rx={...Ph,color:Te,backgroundColor:Te,outlineColor:Te,fill:Te,stroke:Te,borderColor:Te,borderTopColor:Te,borderRightColor:Te,borderBottomColor:Te,borderLeftColor:Te,filter:Zl,WebkitFilter:Zl},wu=e=>rx[e];function um(e,t){let n=wu(e);return n!==Zl&&(n=Jt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const cm=e=>/^0[^.\s]+$/.test(e);function ox(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||cm(e)}function ix(e,t,n,r){const o=Xl(t,n);let i;Array.isArray(n)?i=[...n]:i=[null,n];const s=r.from!==void 0?r.from:e.get();let l;const a=[];for(let u=0;uo=>{const i=Su(r,e)||{},s=i.delay||r.delay||0;let{elapsed:l=0}=r;l=l-Yt(s);const a=ix(t,e,n,i),u=a[0],c=a[a.length-1],d=Xl(e,u),f=Xl(e,c);let m={keyframes:a,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-l,onUpdate:v=>{t.set(v),i.onUpdate&&i.onUpdate(v)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(sx(i)||(m={...m,...J1(e,m)}),m.duration&&(m.duration=Yt(m.duration)),m.repeatDelay&&(m.repeatDelay=Yt(m.repeatDelay)),!d||!f||n1.current||i.type===!1||lx.skipAnimations)return Q1(m);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const v=K1(t,e,m);if(v)return v}return Ii(m)};function Oi(e){return!!(_e(e)&&e.add)}const dm=e=>/^\-?\d*\.?\d+$/.test(e);function Pu(e,t){e.indexOf(t)===-1&&e.push(t)}function Tu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ku{constructor(){this.subscriptions=[]}add(t){return Pu(this.subscriptions,t),()=>Tu(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class ux{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{this.prev=this.current,this.current=r;const{delta:i,timestamp:s}=Se;this.lastUpdated!==s&&(this.timeDelta=i,this.lastUpdated=s,X.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>X.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=ax(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new ku);const r=this.events[t].add(n);return t==="change"?()=>{r(),X.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?sm(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ur(e,t){return new ux(e,t)}const fm=e=>t=>t.test(e),cx={test:e=>e==="auto",parse:e=>e},pm=[Mn,_,ht,Lt,g0,m0,cx],Cr=e=>pm.find(fm(e)),dx=[...pm,Te,Jt],fx=e=>dx.find(fm(e));function px(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ur(n))}function hx(e,t){const n=cs(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const s in i){const l=j0(i[s]);px(e,s,l)}}function mx(e,t,n){var r,o;const i=Object.keys(t).filter(l=>!e.hasValue(l)),s=i.length;if(s)for(let l=0;la.remove(d))),u.push(C)}return s&&Promise.all(u).then(()=>{s&&hx(e,s)}),u}function ql(e,t,n={}){const r=cs(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(hm(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(a=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=o;return wx(e,t,u+a,c,d,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[a,u]=l==="beforeChildren"?[i,s]:[s,i];return a().then(()=>u())}else return Promise.all([i(),s(n.delay)])}function wx(e,t,n=0,r=0,o=1,i){const s=[],l=(e.variantChildren.size-1)*r,a=o===1?(u=0)=>u*r:(u=0)=>l-u*r;return Array.from(e.variantChildren).sort(Sx).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(ql(u,t,{...i,delay:n+a(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function Sx(e,t){return e.sortNodePosition(t)}function Cx(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>ql(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=ql(e,t,n);else{const o=typeof t=="function"?cs(e,t,n.custom):t;r=Promise.all(hm(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}const Px=[...lu].reverse(),Tx=lu.length;function kx(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Cx(e,n,r)))}function Ex(e){let t=kx(e);const n=Ax();let r=!0;const o=(a,u)=>{const c=cs(e,u);if(c){const{transition:d,transitionEnd:f,...m}=c;a={...a,...m,...f}}return a};function i(a){t=a(e)}function s(a,u){const c=e.getProps(),d=e.getVariantContext(!0)||{},f=[],m=new Set;let v={},y=1/0;for(let g=0;gy&&P,D=!1;const $=Array.isArray(w)?w:[w];let b=$.reduce(o,{});k===!1&&(b={});const{prevResolvedValues:J={}}=h,R={...J,...b},Z=z=>{L=!0,m.has(z)&&(D=!0,m.delete(z)),h.needsAnimating[z]=!0};for(const z in R){const se=b[z],A=J[z];if(v.hasOwnProperty(z))continue;let j=!1;Vi(se)&&Vi(A)?j=!Ih(se,A):j=se!==A,j?se!==void 0?Z(z):m.add(z):se!==void 0&&m.has(z)?Z(z):h.protectedKeys[z]=!0}h.prevProp=w,h.prevResolvedValues=b,h.isActive&&(v={...v,...b}),r&&e.blockInitialAnimation&&(L=!1),L&&(!T||D)&&f.push(...$.map(z=>({animation:z,options:{type:p,...a}})))}if(m.size){const g={};m.forEach(p=>{const h=e.getBaseTarget(p);h!==void 0&&(g[p]=h)}),f.push({animation:g})}let C=!!f.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(C=!1),r=!1,C?t(f):Promise.resolve()}function l(a,u,c){var d;if(n[a].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(m=>{var v;return(v=m.animationState)===null||v===void 0?void 0:v.setActive(a,u)}),n[a].isActive=u;const f=s(c,a);for(const m in n)n[m].protectedKeys={};return f}return{animateChanges:s,setActive:l,setAnimateFunction:i,getState:()=>n}}function Nx(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ih(t,e):!1}function an(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ax(){return{animate:an(!0),whileInView:an(),whileHover:an(),whileTap:an(),whileDrag:an(),whileFocus:an(),exit:an()}}class Mx extends on{constructor(t){super(t),t.animationState||(t.animationState=Ex(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),ss(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let Rx=0;class jx extends on{constructor(){super(...arguments),this.id=Rx++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Lx={animation:{Feature:Mx},exit:{Feature:jx}},rd=(e,t)=>Math.abs(e-t);function Dx(e,t){const n=rd(e.x,t.x),r=rd(e.y,t.y);return Math.sqrt(n**2+r**2)}class mm{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Qs(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,m=Dx(d.offset,{x:0,y:0})>=3;if(!f&&!m)return;const{point:v}=d,{timestamp:y}=Se;this.history.push({...v,timestamp:y});const{onStart:C,onMove:g}=this.handlers;f||(C&&C(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Ks(f,this.transformPagePoint),X.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:m,onSessionEnd:v,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=Qs(d.type==="pointercancel"?this.lastMoveEventInfo:Ks(f,this.transformPagePoint),this.history);this.startEvent&&m&&m(d,C),v&&v(d,C)},!Lh(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=us(t),l=Ks(s,this.transformPagePoint),{point:a}=l,{timestamp:u}=Se;this.history=[{...a,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Qs(l,this.history)),this.removeListeners=Qt(Ct(this.contextWindow,"pointermove",this.handlePointerMove),Ct(this.contextWindow,"pointerup",this.handlePointerUp),Ct(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),At(this.updatePoint)}}function Ks(e,t){return t?{point:t(e.point)}:e}function od(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Qs({point:e},t){return{point:e,delta:od(e,gm(t)),offset:od(e,Vx(t)),velocity:bx(t,.1)}}function Vx(e){return e[0]}function gm(e){return e[e.length-1]}function bx(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=gm(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Yt(t)));)n--;if(!r)return{x:0,y:0};const i=Pt(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function We(e){return e.max-e.min}function Jl(e,t=0,n=.01){return Math.abs(e-t)<=n}function id(e,t,n,r=.5){e.origin=r,e.originPoint=te(t.min,t.max,e.origin),e.scale=We(n)/We(t),(Jl(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=te(n.min,n.max,e.origin)-e.originPoint,(Jl(e.translate)||isNaN(e.translate))&&(e.translate=0)}function $r(e,t,n,r){id(e.x,t.x,n.x,r?r.originX:void 0),id(e.y,t.y,n.y,r?r.originY:void 0)}function sd(e,t,n){e.min=n.min+t.min,e.max=e.min+We(t)}function _x(e,t,n){sd(e.x,t.x,n.x),sd(e.y,t.y,n.y)}function ld(e,t,n){e.min=t.min-n.min,e.max=e.min+We(t)}function Wr(e,t,n){ld(e.x,t.x,n.x),ld(e.y,t.y,n.y)}function Ix(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?te(n,e,r.max):Math.min(e,n)),e}function ad(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Ox(e,{top:t,left:n,bottom:r,right:o}){return{x:ad(e.x,n,o),y:ad(e.y,t,r)}}function ud(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=co(t.min,t.max-r,e.min):r>o&&(n=co(e.min,e.max-o,t.min)),qt(0,1,n)}function Bx(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const ea=.35;function Ux(e=ea){return e===!1?e=0:e===!0&&(e=ea),{x:cd(e,"left","right"),y:cd(e,"top","bottom")}}function cd(e,t,n){return{min:dd(e,t),max:dd(e,n)}}function dd(e,t){return typeof e=="number"?e:e[t]||0}const fd=()=>({translate:0,scale:1,origin:0,originPoint:0}),Qn=()=>({x:fd(),y:fd()}),pd=()=>({min:0,max:0}),ue=()=>({x:pd(),y:pd()});function Qe(e){return[e("x"),e("y")]}function ym({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function $x({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Wx(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ys(e){return e===void 0||e===1}function ta({scale:e,scaleX:t,scaleY:n}){return!Ys(e)||!Ys(t)||!Ys(n)}function dn(e){return ta(e)||vm(e)||e.z||e.rotate||e.rotateX||e.rotateY}function vm(e){return hd(e.x)||hd(e.y)}function hd(e){return e&&e!=="0%"}function Fi(e,t,n){const r=e-n,o=t*r;return n+o}function md(e,t,n,r,o){return o!==void 0&&(e=Fi(e,o,r)),Fi(e,n,r)+t}function na(e,t=0,n=1,r,o){e.min=md(e.min,t,n,r,o),e.max=md(e.max,t,n,r,o)}function xm(e,{x:t,y:n}){na(e.x,t.translate,t.scale,t.originPoint),na(e.y,n.translate,n.scale,n.originPoint)}function Hx(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let l=0;l1.0000000000001||e<.999999999999?e:1}function bt(e,t){e.min=e.min+t,e.max=e.max+t}function yd(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,s=te(e.min,e.max,i);na(e,t[n],t[r],s,t.scale)}const Gx=["x","scaleX","originX"],Kx=["y","scaleY","originY"];function Yn(e,t){yd(e.x,t,Gx),yd(e.y,t,Kx)}function wm(e,t){return ym(Wx(e.getBoundingClientRect(),t))}function Qx(e,t,n){const r=wm(e,n),{scroll:o}=t;return o&&(bt(r.x,o.offset.x),bt(r.y,o.offset.y)),r}const Sm=({current:e})=>e?e.ownerDocument.defaultView:null,Yx=new WeakMap;class Xx{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ue(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(us(c,"page").point)},i=(c,d)=>{const{drag:f,dragPropagation:m,onDragStart:v}=this.getProps();if(f&&!m&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Vh(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Qe(C=>{let g=this.getAxisMotionValue(C).get()||0;if(ht.test(g)){const{projection:p}=this.visualElement;if(p&&p.layout){const h=p.layout.layoutBox[C];h&&(g=We(h)*(parseFloat(g)/100))}}this.originPoint[C]=g}),v&&X.update(()=>v(c,d),!1,!0);const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:m,onDirectionLock:v,onDrag:y}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:C}=d;if(m&&this.currentDirection===null){this.currentDirection=Zx(C),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",d.point,C),this.updateAxis("y",d.point,C),this.visualElement.render(),y&&y(c,d)},l=(c,d)=>this.stop(c,d),a=()=>Qe(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new mm(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:l,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Sm(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&X.update(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Wo(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=Ix(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&Gn(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=Ox(o.layoutBox,n):this.constraints=!1,this.elastic=Ux(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Qe(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=Bx(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Gn(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=Qx(r,o.root,this.visualElement.getTransformPagePoint());let s=Fx(o.layout.layoutBox,i);if(n){const l=n($x(s));this.hasMutatedConstraints=!!l,l&&(s=ym(l))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),a=this.constraints||{},u=Qe(c=>{if(!Wo(c,n,this.currentDirection))return;let d=a&&a[c]||{};s&&(d={min:0,max:0});const f=o?200:1e6,m=o?40:1e7,v={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,v)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Cu(t,r,0,n))}stopAnimation(){Qe(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Qe(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Qe(n=>{const{drag:r}=this.getProps();if(!Wo(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:l}=o.layout.layoutBox[n];i.set(t[n]-te(s,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Gn(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Qe(s=>{const l=this.getAxisMotionValue(s);if(l){const a=l.get();o[s]=zx({min:a,max:a},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Qe(s=>{if(!Wo(s,t,null))return;const l=this.getAxisMotionValue(s),{min:a,max:u}=this.constraints[s];l.set(te(a,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;Yx.set(this.visualElement,this);const t=this.visualElement.current,n=Ct(t,"pointerdown",a=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(a)}),r=()=>{const{dragConstraints:a}=this.getProps();Gn(a)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),r();const s=wt(window,"resize",()=>this.scalePositionWithinConstraints()),l=o.addEventListener("didUpdate",({delta:a,hasLayoutChanged:u})=>{this.isDragging&&u&&(Qe(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=a[c].translate,d.set(d.get()+a[c].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=ea,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:l}}}function Wo(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Zx(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class qx extends on{constructor(t){super(t),this.removeGroupControls=ie,this.removeListeners=ie,this.controls=new Xx(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ie}unmount(){this.removeGroupControls(),this.removeListeners()}}const vd=e=>(t,n)=>{e&&X.update(()=>e(t,n))};class Jx extends on{constructor(){super(...arguments),this.removePointerDownListener=ie}onPointerDown(t){this.session=new mm(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Sm(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:vd(t),onStart:vd(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&X.update(()=>o(i,s))}}}mount(){this.removePointerDownListener=Ct(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function ew(){const e=S.useContext(iu);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=S.useId();return S.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}const li={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function xd(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Pr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(_.test(e))e=parseFloat(e);else return e;const n=xd(e,t.target.x),r=xd(e,t.target.y);return`${n}% ${r}%`}},tw={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Jt.parse(e);if(o.length>5)return r;const i=Jt.createTransformer(e),s=typeof o[0]!="number"?1:0,l=n.x.scale*t.x,a=n.y.scale*t.y;o[0+s]/=l,o[1+s]/=a;const u=te(l,a,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}};class nw extends he.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;a0(rw),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),li.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||X.postRender(()=>{const l=s.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Cm(e){const[t,n]=ew(),r=S.useContext(yh);return he.createElement(nw,{...e,layoutGroup:r,switchLayoutGroup:S.useContext(vh),isPresent:t,safeToRemove:n})}const rw={borderRadius:{...Pr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Pr,borderTopRightRadius:Pr,borderBottomLeftRadius:Pr,borderBottomRightRadius:Pr,boxShadow:tw},Pm=["TopLeft","TopRight","BottomLeft","BottomRight"],ow=Pm.length,wd=e=>typeof e=="string"?parseFloat(e):e,Sd=e=>typeof e=="number"||_.test(e);function iw(e,t,n,r,o,i){o?(e.opacity=te(0,n.opacity!==void 0?n.opacity:1,sw(r)),e.opacityExit=te(t.opacity!==void 0?t.opacity:1,0,lw(r))):i&&(e.opacity=te(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(co(e,t,r))}function Pd(e,t){e.min=t.min,e.max=t.max}function Ke(e,t){Pd(e.x,t.x),Pd(e.y,t.y)}function Td(e,t,n,r,o){return e-=t,e=Fi(e,1/n,r),o!==void 0&&(e=Fi(e,1/o,r)),e}function aw(e,t=0,n=1,r=.5,o,i=e,s=e){if(ht.test(t)&&(t=parseFloat(t),t=te(s.min,s.max,t/100)-s.min),typeof t!="number")return;let l=te(i.min,i.max,r);e===i&&(l-=t),e.min=Td(e.min,t,n,l,o),e.max=Td(e.max,t,n,l,o)}function kd(e,t,[n,r,o],i,s){aw(e,t[n],t[r],t[o],t.scale,i,s)}const uw=["x","scaleX","originX"],cw=["y","scaleY","originY"];function Ed(e,t,n,r){kd(e.x,t,uw,n?n.x:void 0,r?r.x:void 0),kd(e.y,t,cw,n?n.y:void 0,r?r.y:void 0)}function Nd(e){return e.translate===0&&e.scale===1}function km(e){return Nd(e.x)&&Nd(e.y)}function dw(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Em(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Ad(e){return We(e.x)/We(e.y)}class fw{constructor(){this.members=[]}add(t){Pu(this.members,t),t.scheduleRender()}remove(t){if(Tu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Md(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:a,rotateX:u,rotateY:c}=n;a&&(r+=`rotate(${a}deg) `),u&&(r+=`rotateX(${u}deg) `),c&&(r+=`rotateY(${c}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const pw=(e,t)=>e.depth-t.depth;class hw{constructor(){this.children=[],this.isDirty=!1}add(t){Pu(this.children,t),this.isDirty=!0}remove(t){Tu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(pw),this.isDirty=!1,this.children.forEach(t)}}function mw(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(At(r),e(i-t))};return X.read(r,!0),()=>At(r)}function gw(e){window.MotionDebug&&window.MotionDebug.record(e)}function yw(e){return e instanceof SVGElement&&e.tagName!=="svg"}function vw(e,t,n){const r=_e(e)?e:ur(e);return r.start(Cu("",r,t,n)),r.animation}const Rd=["","X","Y","Z"],xw={visibility:"hidden"},jd=1e3;let ww=0;const fn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Nm({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},l=t==null?void 0:t()){this.id=ww++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,fn.totalNodes=fn.resolvedTargetDeltas=fn.recalculatedProjection=0,this.nodes.forEach(Pw),this.nodes.forEach(Aw),this.nodes.forEach(Mw),this.nodes.forEach(Tw),gw(fn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let a=0;athis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=mw(f,250),li.hasAnimatedSinceResize&&(li.hasAnimatedSinceResize=!1,this.nodes.forEach(Dd))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:m,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||Vw,{onLayoutAnimationStart:C,onLayoutAnimationComplete:g}=c.getProps(),p=!this.targetLayout||!Em(this.targetLayout,v)||m,h=!f&&m;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||h||f&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,h);const w={...Su(y,"layout"),onPlay:C,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else f||Dd(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,At(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Rw),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(kw),this.sharedNodes.forEach(jw)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,X.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){X.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let a=0;a{const P=w/1e3;Vd(d.x,s.x,P),Vd(d.y,s.y,P),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Wr(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Lw(this.relativeTarget,this.relativeTargetOrigin,f,P),h&&dw(this.relativeTarget,h)&&(this.isProjectionDirty=!1),h||(h=ue()),Ke(h,this.relativeTarget)),y&&(this.animationValues=c,iw(c,u,this.latestValues,P,p,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(At(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=X.update(()=>{li.hasAnimatedSinceResize=!0,this.currentAnimation=vw(0,jd,{...s,onUpdate:l=>{this.mixTargetDelta(l),s.onUpdate&&s.onUpdate(l)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(jd),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:l,target:a,layout:u,latestValues:c}=s;if(!(!l||!a||!u)){if(this!==s&&this.layout&&u&&Am(this.options.animationType,this.layout.layoutBox,u.layoutBox)){a=this.target||ue();const d=We(this.layout.layoutBox.x);a.x.min=s.target.x.min,a.x.max=a.x.min+d;const f=We(this.layout.layoutBox.y);a.y.min=s.target.y.min,a.y.max=a.y.min+f}Ke(l,a),Yn(l,c),$r(this.projectionDeltaWithTransform,this.layoutCorrected,l,c)}}registerSharedNode(s,l){this.sharedNodes.has(s)||this.sharedNodes.set(s,new fw),this.sharedNodes.get(s).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:l}=this.options;return l?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:l}=this.options;return l?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:l,preserveFollowOpacity:a}={}){const u=this.getStack();u&&u.promote(this,a),s&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let l=!1;const{latestValues:a}=s;if((a.rotate||a.rotateX||a.rotateY||a.rotateZ)&&(l=!0),!l)return;const u={};for(let c=0;c{var l;return(l=s.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(Ld),this.root.sharedNodes.clear()}}}function Sw(e){e.updateLayout()}function Cw(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?Qe(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],m=We(f);f.min=r[d].min,f.max=f.min+m}):Am(i,n.layoutBox,r)&&Qe(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],m=We(r[d]);f.max=f.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+m)});const l=Qn();$r(l,r,n.layoutBox);const a=Qn();s?$r(a,e.applyTransform(o,!0),n.measuredBox):$r(a,r,n.layoutBox);const u=!km(l);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:m}=d;if(f&&m){const v=ue();Wr(v,n.layoutBox,f.layoutBox);const y=ue();Wr(y,r,m.layoutBox),Em(v,y)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=v,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:a,layoutDelta:l,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Pw(e){fn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Tw(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function kw(e){e.clearSnapshot()}function Ld(e){e.clearMeasurements()}function Ew(e){e.isLayoutDirty=!1}function Nw(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Dd(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Aw(e){e.resolveTargetDelta()}function Mw(e){e.calcProjection()}function Rw(e){e.resetRotation()}function jw(e){e.removeLeadSnapshot()}function Vd(e,t,n){e.translate=te(t.translate,0,n),e.scale=te(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function bd(e,t,n,r){e.min=te(t.min,n.min,r),e.max=te(t.max,n.max,r)}function Lw(e,t,n,r){bd(e.x,t.x,n.x,r),bd(e.y,t.y,n.y,r)}function Dw(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Vw={duration:.45,ease:[.4,0,.1,1]},_d=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),Id=_d("applewebkit/")&&!_d("chrome/")?Math.round:ie;function Od(e){e.min=Id(e.min),e.max=Id(e.max)}function bw(e){Od(e.x),Od(e.y)}function Am(e,t,n){return e==="position"||e==="preserve-aspect"&&!Jl(Ad(t),Ad(n),.2)}const _w=Nm({attachResizeListener:(e,t)=>wt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Xs={current:void 0},Mm=Nm({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Xs.current){const e=new _w({});e.mount(window),e.setOptions({layoutScroll:!0}),Xs.current=e}return Xs.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Iw={pan:{Feature:Jx},drag:{Feature:qx,ProjectionNode:Mm,MeasureLayout:Cm}},Ow=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Fw(e){const t=Ow.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function ra(e,t,n=1){const[r,o]=Fw(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return dm(s)?parseFloat(s):s}else return Gl(o)?ra(o,t,n+1):o}function zw(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(o=>{const i=o.get();if(!Gl(i))return;const s=ra(i,r);s&&o.set(s)});for(const o in t){const i=t[o];if(!Gl(i))continue;const s=ra(i,r);s&&(t[o]=s,n||(n={}),n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const Bw=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Rm=e=>Bw.has(e),Uw=e=>Object.keys(e).some(Rm),Fd=e=>e===Mn||e===_,zd=(e,t)=>parseFloat(e.split(", ")[t]),Bd=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return zd(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?zd(i[1],e):0}},$w=new Set(["x","y","z"]),Ww=vo.filter(e=>!$w.has(e));function Hw(e){const t=[];return Ww.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const cr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Bd(4,13),y:Bd(5,14)};cr.translateX=cr.x;cr.translateY=cr.y;const Gw=(e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:s}=i,l={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{l[u]=cr[u](r,i)}),t.render();const a=t.measureViewportBox();return n.forEach(u=>{const c=t.getValue(u);c&&c.jump(l[u]),e[u]=cr[u](a,i)}),e},Kw=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(Rm);let i=[],s=!1;const l=[];if(o.forEach(a=>{const u=e.getValue(a);if(!e.hasValue(a))return;let c=n[a],d=Cr(c);const f=t[a];let m;if(Vi(f)){const v=f.length,y=f[0]===null?1:0;c=f[y],d=Cr(c);for(let C=y;C=0?window.pageYOffset:null,u=Gw(t,e,l);return i.length&&i.forEach(([c,d])=>{e.getValue(c).set(d)}),e.render(),is&&a!==null&&window.scrollTo({top:a}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function Qw(e,t,n,r){return Uw(t)?Kw(e,t,n,r):{target:t,transitionEnd:r}}const Yw=(e,t,n,r)=>{const o=zw(e,t,r);return t=o.target,r=o.transitionEnd,Qw(e,t,n,r)},oa={current:null},jm={current:!1};function Xw(){if(jm.current=!0,!!is)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>oa.current=e.matches;e.addListener(t),t()}else oa.current=!1}function Zw(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],s=n[o];if(_e(i))e.addValue(o,i),Oi(r)&&r.add(o);else if(_e(s))e.addValue(o,ur(i,{owner:e})),Oi(r)&&r.remove(o);else if(s!==i)if(e.hasValue(o)){const l=e.getValue(o);!l.hasAnimated&&l.set(i)}else{const l=e.getStaticValue(o);e.addValue(o,ur(l!==void 0?l:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const Ud=new WeakMap,Lm=Object.keys(uo),qw=Lm.length,$d=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Jw=au.length;class eS{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,visualState:i},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>X.render(this.render,!1,!0);const{latestValues:l,renderState:a}=i;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=a,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.isControllingVariants=ls(n),this.isVariantNode=gh(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{});for(const d in c){const f=c[d];l[d]!==void 0&&_e(f)&&(f.set(l[d],!1),Oi(u)&&u.add(d))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,Ud.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),jm.current||Xw(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:oa.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ud.delete(this.current),this.projection&&this.projection.unmount(),At(this.notifyUpdate),At(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=An.has(t),o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&X.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,o,i){let s,l;for(let a=0;athis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,layoutScroll:f,layoutRoot:m})}return l}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ue()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<$d.length;r++){const o=$d[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i=t["on"+o];i&&(this.propEventSubscriptions[o]=this.on(o,i))}this.prevMotionValues=Zw(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=ur(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,o=typeof r=="string"||typeof r=="object"?(n=mu(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!_e(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ku),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Dm extends eS{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:o},i){let s=yx(r,t||{},this);if(o&&(n&&(n=o(n)),r&&(r=o(r)),s&&(s=o(s))),i){mx(this,r,s);const l=Yw(this,r,s,n);n=l.transitionEnd,r=l.target}return{transition:t,transitionEnd:n,...r}}}function tS(e){return window.getComputedStyle(e)}class nS extends Dm{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(An.has(n)){const r=wu(n);return r&&r.default||0}else{const r=tS(t),o=(Sh(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return wm(t,n)}build(t,n,r,o){cu(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n){return hu(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;_e(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){Nh(t,n,r,o)}}class rS extends Dm{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(An.has(n)){const r=wu(n);return r&&r.default||0}return n=Ah.has(n)?n:su(n),t.getAttribute(n)}measureInstanceViewportBox(){return ue()}scrapeMotionValuesFromProps(t,n){return Rh(t,n)}build(t,n,r,o){fu(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){Mh(t,n,r,o)}mount(t){this.isSVGTag=pu(t.tagName),super.mount(t)}}const oS=(e,t)=>uu(e)?new rS(t,{enableHardwareAcceleration:!1}):new nS(t,{enableHardwareAcceleration:!0}),iS={layout:{ProjectionNode:Mm,MeasureLayout:Cm}},sS={...Lx,...q0,...Iw,...iS},ae=s0((e,t)=>F0(e,t,sS,oS));function Vm(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;te&&(t=0,r=n,n=new Map)}return{get:function(s){var l=n.get(s);if(l!==void 0)return l;if((l=r.get(s))!==void 0)return o(s,l),l},set:function(s,l){n.has(s)?n.set(s,l):o(s,l)}}}var Om="!";function hS(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(s){for(var l=[],a=0,u=0,c,d=0;du?c-u:void 0;return{modifiers:l,hasImportantModifier:v,baseClassName:y,maybePostfixModifierPosition:C}}}function mS(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function gS(e){return{cache:pS(e.cacheSize),splitModifiers:hS(e),...aS(e)}}var yS=/\s+/;function vS(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,i=new Set;return e.trim().split(yS).map(function(s){var l=n(s),a=l.modifiers,u=l.hasImportantModifier,c=l.baseClassName,d=l.maybePostfixModifierPosition,f=r(d?c.substring(0,d):c),m=!!d;if(!f){if(!d)return{isTailwindClass:!1,originalClassName:s};if(f=r(c),!f)return{isTailwindClass:!1,originalClassName:s};m=!1}var v=mS(a).join(":"),y=u?v+Om:v;return{isTailwindClass:!0,modifierId:y,classGroupId:f,originalClassName:s,hasPostfixModifier:m}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var l=s.modifierId,a=s.classGroupId,u=s.hasPostfixModifier,c=l+a;return i.has(c)?!1:(i.add(c),o(a,u).forEach(function(d){return i.add(l+d)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function xS(){for(var e=arguments.length,t=new Array(e),n=0;n{let n=!1;const r=e.map(o=>{const i=Kd(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o{var g;const{scope:f,children:m,...v}=d,y=((g=f==null?void 0:f[e])==null?void 0:g[a])||l,C=S.useMemo(()=>v,Object.values(v));return x.jsx(y.Provider,{value:C,children:m})};u.displayName=i+"Provider";function c(d,f){var y;const m=((y=f==null?void 0:f[e])==null?void 0:y[a])||l,v=S.useContext(m);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[u,c]}const o=()=>{const i=n.map(s=>S.createContext(s));return function(l){const a=(l==null?void 0:l[e])||i;return S.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return o.scopeName=e,[r,_S(o,...t)]}function _S(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((l,{useScope:a,scopeName:u})=>{const d=a(i)[`__scope${u}`];return{...l,...d}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function zi(e){const t=OS(e),n=S.forwardRef((r,o)=>{const{children:i,...s}=r,l=S.Children.toArray(i),a=l.find(zS);if(a){const u=a.props.children,c=l.map(d=>d===a?S.Children.count(u)>1?S.Children.only(null):S.isValidElement(u)?u.props.children:null:d);return x.jsx(t,{...s,ref:o,children:S.isValidElement(u)?S.cloneElement(u,void 0,c):null})}return x.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var IS=zi("Slot");function OS(e){const t=S.forwardRef((n,r)=>{const{children:o,...i}=n,s=S.isValidElement(o)?US(o):void 0,l=en(s,r);if(S.isValidElement(o)){const a=BS(i,o.props);return o.type!==S.Fragment&&(a.ref=l),S.cloneElement(o,a)}return S.Children.count(o)>1?S.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var FS=Symbol("radix.slottable");function zS(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===FS}function BS(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{const a=i(...l);return o(...l),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function US(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function $S(e){const t=e+"CollectionProvider",[n,r]=Bm(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=y=>{const{scope:C,children:g}=y,p=he.useRef(null),h=he.useRef(new Map).current;return x.jsx(o,{scope:C,itemMap:h,collectionRef:p,children:g})};s.displayName=t;const l=e+"CollectionSlot",a=zi(l),u=he.forwardRef((y,C)=>{const{scope:g,children:p}=y,h=i(l,g),w=en(C,h.collectionRef);return x.jsx(a,{ref:w,children:p})});u.displayName=l;const c=e+"CollectionItemSlot",d="data-radix-collection-item",f=zi(c),m=he.forwardRef((y,C)=>{const{scope:g,children:p,...h}=y,w=he.useRef(null),P=en(C,w),k=i(c,g);return he.useEffect(()=>(k.itemMap.set(w,{ref:w,...h}),()=>void k.itemMap.delete(w))),x.jsx(f,{[d]:"",ref:P,children:p})});m.displayName=c;function v(y){const C=i(e+"CollectionConsumer",y);return he.useCallback(()=>{const p=C.collectionRef.current;if(!p)return[];const h=Array.from(p.querySelectorAll(`[${d}]`));return Array.from(C.itemMap.values()).sort((k,T)=>h.indexOf(k.ref.current)-h.indexOf(T.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:s,Slot:u,ItemSlot:m},v,r]}var WS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],mt=WS.reduce((e,t)=>{const n=zi(`Primitive.${t}`),r=S.forwardRef((o,i)=>{const{asChild:s,...l}=o,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(a,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Um(e,t){e&&rs.flushSync(()=>e.dispatchEvent(t))}function kn(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function HS(e,t=globalThis==null?void 0:globalThis.document){const n=kn(e);S.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var GS="DismissableLayer",la="dismissableLayer.update",KS="dismissableLayer.pointerDownOutside",QS="dismissableLayer.focusOutside",Qd,$m=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Wm=S.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...a}=e,u=S.useContext($m),[c,d]=S.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=S.useState({}),v=en(t,T=>d(T)),y=Array.from(u.layers),[C]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=y.indexOf(C),p=c?y.indexOf(c):-1,h=u.layersWithOutsidePointerEventsDisabled.size>0,w=p>=g,P=XS(T=>{const E=T.target,L=[...u.branches].some(D=>D.contains(E));!w||L||(o==null||o(T),s==null||s(T),T.defaultPrevented||l==null||l())},f),k=ZS(T=>{const E=T.target;[...u.branches].some(D=>D.contains(E))||(i==null||i(T),s==null||s(T),T.defaultPrevented||l==null||l())},f);return HS(T=>{p===u.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&l&&(T.preventDefault(),l()))},f),S.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Qd=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),Yd(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Qd)}},[c,f,n,u]),S.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),Yd())},[c,u]),S.useEffect(()=>{const T=()=>m({});return document.addEventListener(la,T),()=>document.removeEventListener(la,T)},[]),x.jsx(mt.div,{...a,ref:v,style:{pointerEvents:h?w?"auto":"none":void 0,...e.style},onFocusCapture:ze(e.onFocusCapture,k.onFocusCapture),onBlurCapture:ze(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:ze(e.onPointerDownCapture,P.onPointerDownCapture)})});Wm.displayName=GS;var YS="DismissableLayerBranch",Hm=S.forwardRef((e,t)=>{const n=S.useContext($m),r=S.useRef(null),o=en(t,r);return S.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),x.jsx(mt.div,{...e,ref:o})});Hm.displayName=YS;function XS(e,t=globalThis==null?void 0:globalThis.document){const n=kn(e),r=S.useRef(!1),o=S.useRef(()=>{});return S.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let a=function(){Gm(KS,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function ZS(e,t=globalThis==null?void 0:globalThis.document){const n=kn(e),r=S.useRef(!1);return S.useEffect(()=>{const o=i=>{i.target&&!r.current&&Gm(QS,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Yd(){const e=new CustomEvent(la);document.dispatchEvent(e)}function Gm(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Um(o,i):o.dispatchEvent(i)}var qS=Wm,JS=Hm,fo=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{},eC="Portal",Km=S.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,i]=S.useState(!1);fo(()=>i(!0),[]);const s=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return s?Yv.createPortal(x.jsx(mt.div,{...r,ref:t}),s):null});Km.displayName=eC;function tC(e,t){return S.useReducer((n,r)=>t[n][r]??n,e)}var Qm=e=>{const{present:t,children:n}=e,r=nC(t),o=typeof n=="function"?n({present:r.isPresent}):S.Children.only(n),i=en(r.ref,rC(o));return typeof n=="function"||r.isPresent?S.cloneElement(o,{ref:i}):null};Qm.displayName="Presence";function nC(e){const[t,n]=S.useState(),r=S.useRef(null),o=S.useRef(e),i=S.useRef("none"),s=e?"mounted":"unmounted",[l,a]=tC(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const u=Go(r.current);i.current=l==="mounted"?u:"none"},[l]),fo(()=>{const u=r.current,c=o.current;if(c!==e){const f=i.current,m=Go(u);e?a("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(c&&f!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),fo(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=m=>{const y=Go(r.current).includes(m.animationName);if(m.target===t&&y&&(a("ANIMATION_END"),!o.current)){const C=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=C)})}},f=m=>{m.target===t&&(i.current=Go(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:S.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Go(e){return(e==null?void 0:e.animationName)||"none"}function rC(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var oC=Og[" useInsertionEffect ".trim().toString()]||fo;function iC({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=sC({defaultProp:t,onChange:n}),l=e!==void 0,a=l?e:o;{const c=S.useRef(e!==void 0);S.useEffect(()=>{const d=c.current;d!==l&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=l},[l,r])}const u=S.useCallback(c=>{var d;if(l){const f=lC(c)?c(e):c;f!==e&&((d=s.current)==null||d.call(s,f))}else i(c)},[l,e,i,s]);return[a,u]}function sC({defaultProp:e,onChange:t}){const[n,r]=S.useState(e),o=S.useRef(n),i=S.useRef(t);return oC(()=>{i.current=t},[t]),S.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function lC(e){return typeof e=="function"}var aC=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),uC="VisuallyHidden",Nu=S.forwardRef((e,t)=>x.jsx(mt.span,{...e,ref:t,style:{...aC,...e.style}}));Nu.displayName=uC;var Au="ToastProvider",[Mu,cC,dC]=$S("Toast"),[Ym,nP]=Bm("Toast",[dC]),[fC,ds]=Ym(Au),Xm=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[l,a]=S.useState(null),[u,c]=S.useState(0),d=S.useRef(!1),f=S.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Au}\`. Expected non-empty \`string\`.`),x.jsx(Mu.Provider,{scope:t,children:x.jsx(fC,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:l,onViewportChange:a,onToastAdd:S.useCallback(()=>c(m=>m+1),[]),onToastRemove:S.useCallback(()=>c(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f,children:s})})};Xm.displayName=Au;var Zm="ToastViewport",pC=["F8"],aa="toast.viewportPause",ua="toast.viewportResume",qm=S.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=pC,label:o="Notifications ({hotkey})",...i}=e,s=ds(Zm,n),l=cC(n),a=S.useRef(null),u=S.useRef(null),c=S.useRef(null),d=S.useRef(null),f=en(t,d,s.onViewportChange),m=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),v=s.toastCount>0;S.useEffect(()=>{const C=g=>{var h;r.length!==0&&r.every(w=>g[w]||g.code===w)&&((h=d.current)==null||h.focus())};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[r]),S.useEffect(()=>{const C=a.current,g=d.current;if(v&&C&&g){const p=()=>{if(!s.isClosePausedRef.current){const k=new CustomEvent(aa);g.dispatchEvent(k),s.isClosePausedRef.current=!0}},h=()=>{if(s.isClosePausedRef.current){const k=new CustomEvent(ua);g.dispatchEvent(k),s.isClosePausedRef.current=!1}},w=k=>{!C.contains(k.relatedTarget)&&h()},P=()=>{C.contains(document.activeElement)||h()};return C.addEventListener("focusin",p),C.addEventListener("focusout",w),C.addEventListener("pointermove",p),C.addEventListener("pointerleave",P),window.addEventListener("blur",p),window.addEventListener("focus",h),()=>{C.removeEventListener("focusin",p),C.removeEventListener("focusout",w),C.removeEventListener("pointermove",p),C.removeEventListener("pointerleave",P),window.removeEventListener("blur",p),window.removeEventListener("focus",h)}}},[v,s.isClosePausedRef]);const y=S.useCallback(({tabbingDirection:C})=>{const p=l().map(h=>{const w=h.ref.current,P=[w,...EC(w)];return C==="forwards"?P:P.reverse()});return(C==="forwards"?p.reverse():p).flat()},[l]);return S.useEffect(()=>{const C=d.current;if(C){const g=p=>{var P,k,T;const h=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!h){const E=document.activeElement,L=p.shiftKey;if(p.target===C&&L){(P=u.current)==null||P.focus();return}const b=y({tabbingDirection:L?"backwards":"forwards"}),J=b.findIndex(R=>R===E);Zs(b.slice(J+1))?p.preventDefault():L?(k=u.current)==null||k.focus():(T=c.current)==null||T.focus()}};return C.addEventListener("keydown",g),()=>C.removeEventListener("keydown",g)}},[l,y]),x.jsxs(JS,{ref:a,role:"region","aria-label":o.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:v?void 0:"none"},children:[v&&x.jsx(ca,{ref:u,onFocusFromOutsideViewport:()=>{const C=y({tabbingDirection:"forwards"});Zs(C)}}),x.jsx(Mu.Slot,{scope:n,children:x.jsx(mt.ol,{tabIndex:-1,...i,ref:f})}),v&&x.jsx(ca,{ref:c,onFocusFromOutsideViewport:()=>{const C=y({tabbingDirection:"backwards"});Zs(C)}})]})});qm.displayName=Zm;var Jm="ToastFocusProxy",ca=S.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=ds(Jm,n);return x.jsx(Nu,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var u;const l=s.relatedTarget;!((u=i.viewport)!=null&&u.contains(l))&&r()}})});ca.displayName=Jm;var Co="Toast",hC="toast.swipeStart",mC="toast.swipeMove",gC="toast.swipeCancel",yC="toast.swipeEnd",eg=S.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[l,a]=iC({prop:r,defaultProp:o??!0,onChange:i,caller:Co});return x.jsx(Qm,{present:n||l,children:x.jsx(wC,{open:l,...s,ref:t,onClose:()=>a(!1),onPause:kn(e.onPause),onResume:kn(e.onResume),onSwipeStart:ze(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ze(e.onSwipeMove,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:ze(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ze(e.onSwipeEnd,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),a(!1)})})})});eg.displayName=Co;var[vC,xC]=Ym(Co,{onClose(){}}),wC=S.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:l,onPause:a,onResume:u,onSwipeStart:c,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:m,...v}=e,y=ds(Co,n),[C,g]=S.useState(null),p=en(t,R=>g(R)),h=S.useRef(null),w=S.useRef(null),P=o||y.duration,k=S.useRef(0),T=S.useRef(P),E=S.useRef(0),{onToastAdd:L,onToastRemove:D}=y,$=kn(()=>{var Z;(C==null?void 0:C.contains(document.activeElement))&&((Z=y.viewport)==null||Z.focus()),s()}),b=S.useCallback(R=>{!R||R===1/0||(window.clearTimeout(E.current),k.current=new Date().getTime(),E.current=window.setTimeout($,R))},[$]);S.useEffect(()=>{const R=y.viewport;if(R){const Z=()=>{b(T.current),u==null||u()},z=()=>{const se=new Date().getTime()-k.current;T.current=T.current-se,window.clearTimeout(E.current),a==null||a()};return R.addEventListener(aa,z),R.addEventListener(ua,Z),()=>{R.removeEventListener(aa,z),R.removeEventListener(ua,Z)}}},[y.viewport,P,a,u,b]),S.useEffect(()=>{i&&!y.isClosePausedRef.current&&b(P)},[i,P,y.isClosePausedRef,b]),S.useEffect(()=>(L(),()=>D()),[L,D]);const J=S.useMemo(()=>C?lg(C):null,[C]);return y.viewport?x.jsxs(x.Fragment,{children:[J&&x.jsx(SC,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:J}),x.jsx(vC,{scope:n,onClose:$,children:rs.createPortal(x.jsx(Mu.ItemSlot,{scope:n,children:x.jsx(qS,{asChild:!0,onEscapeKeyDown:ze(l,()=>{y.isFocusedToastEscapeKeyDownRef.current||$(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:x.jsx(mt.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":y.swipeDirection,...v,ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ze(e.onKeyDown,R=>{R.key==="Escape"&&(l==null||l(R.nativeEvent),R.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,$()))}),onPointerDown:ze(e.onPointerDown,R=>{R.button===0&&(h.current={x:R.clientX,y:R.clientY})}),onPointerMove:ze(e.onPointerMove,R=>{if(!h.current)return;const Z=R.clientX-h.current.x,z=R.clientY-h.current.y,se=!!w.current,A=["left","right"].includes(y.swipeDirection),j=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,I=A?j(0,Z):0,V=A?0:j(0,z),B=R.pointerType==="touch"?10:2,H={x:I,y:V},Ie={originalEvent:R,delta:H};se?(w.current=H,Ko(mC,d,Ie,{discrete:!1})):Xd(H,y.swipeDirection,B)?(w.current=H,Ko(hC,c,Ie,{discrete:!1}),R.target.setPointerCapture(R.pointerId)):(Math.abs(Z)>B||Math.abs(z)>B)&&(h.current=null)}),onPointerUp:ze(e.onPointerUp,R=>{const Z=w.current,z=R.target;if(z.hasPointerCapture(R.pointerId)&&z.releasePointerCapture(R.pointerId),w.current=null,h.current=null,Z){const se=R.currentTarget,A={originalEvent:R,delta:Z};Xd(Z,y.swipeDirection,y.swipeThreshold)?Ko(yC,m,A,{discrete:!0}):Ko(gC,f,A,{discrete:!0}),se.addEventListener("click",j=>j.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),SC=e=>{const{__scopeToast:t,children:n,...r}=e,o=ds(Co,t),[i,s]=S.useState(!1),[l,a]=S.useState(!1);return TC(()=>s(!0)),S.useEffect(()=>{const u=window.setTimeout(()=>a(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:x.jsx(Km,{asChild:!0,children:x.jsx(Nu,{...r,children:i&&x.jsxs(x.Fragment,{children:[o.label," ",n]})})})},CC="ToastTitle",tg=S.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return x.jsx(mt.div,{...r,ref:t})});tg.displayName=CC;var PC="ToastDescription",ng=S.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return x.jsx(mt.div,{...r,ref:t})});ng.displayName=PC;var rg="ToastAction",og=S.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?x.jsx(sg,{altText:n,asChild:!0,children:x.jsx(Ru,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${rg}\`. Expected non-empty \`string\`.`),null)});og.displayName=rg;var ig="ToastClose",Ru=S.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=xC(ig,n);return x.jsx(sg,{asChild:!0,children:x.jsx(mt.button,{type:"button",...r,ref:t,onClick:ze(e.onClick,o.onClose)})})});Ru.displayName=ig;var sg=S.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return x.jsx(mt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function lg(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),kC(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...lg(r))}}),t}function Ko(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Um(o,i):o.dispatchEvent(i)}var Xd=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function TC(e=()=>{}){const t=kn(e);fo(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function kC(e){return e.nodeType===e.ELEMENT_NODE}function EC(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Zs(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var NC=Xm,ag=qm,ug=eg,cg=tg,dg=ng,fg=og,pg=Ru;const Zd=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,qd=bm,hg=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return qd(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(u=>{const c=n==null?void 0:n[u],d=i==null?void 0:i[u];if(c===null)return null;const f=Zd(c)||Zd(d);return o[u][f]}),l=n&&Object.entries(n).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:f,...m}=c;return Object.entries(m).every(v=>{let[y,C]=v;return Array.isArray(C)?C.includes({...i,...l}[y]):{...i,...l}[y]===C})?[...u,d,f]:u},[]);return qd(e,s,a,n==null?void 0:n.class,n==null?void 0:n.className)};var AC={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const MC=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Re=(e,t)=>{const n=S.forwardRef(({color:r="currentColor",size:o=24,strokeWidth:i=2,absoluteStrokeWidth:s,children:l,...a},u)=>S.createElement("svg",{ref:u,...AC,width:o,height:o,stroke:r,strokeWidth:s?Number(i)*24/Number(o):i,className:`lucide lucide-${MC(e)}`,...a},[...t.map(([c,d])=>S.createElement(c,d)),...(Array.isArray(l)?l:[l])||[]]));return n.displayName=`${e}`,n},RC=Re("Briefcase",[["rect",{width:"20",height:"14",x:"2",y:"7",rx:"2",ry:"2",key:"eto64e"}],["path",{d:"M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"zwj3tp"}]]),jC=Re("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]),LC=Re("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),DC=Re("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]),VC=Re("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]),bC=Re("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]),_C=Re("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]),IC=Re("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]),OC=Re("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]),FC=Re("MapPin",[["path",{d:"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z",key:"2oe9fu"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]),zC=Re("PenTool",[["path",{d:"m12 19 7-7 3 3-7 7-3-3z",key:"rklqx2"}],["path",{d:"m18 13-1.5-7.5L2 2l3.5 14.5L13 18l5-5z",key:"1et58u"}],["path",{d:"m2 2 7.586 7.586",key:"etlp93"}],["circle",{cx:"11",cy:"11",r:"2",key:"xmgehs"}]]),BC=Re("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]),UC=Re("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]),$C=Re("Twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]),WC=Re("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),HC=NC,mg=he.forwardRef(({className:e,...t},n)=>x.jsx(ag,{ref:n,className:jn("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));mg.displayName=ag.displayName;const GC=hg("data-[swipe=move]:transition-none group relative pointer-events-auto flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full data-[state=closed]:slide-out-to-right-full",{variants:{variant:{default:"bg-background border",destructive:"group destructive border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),gg=he.forwardRef(({className:e,variant:t,...n},r)=>x.jsx(ug,{ref:r,className:jn(GC({variant:t}),e),...n}));gg.displayName=ug.displayName;const KC=he.forwardRef(({className:e,...t},n)=>x.jsx(fg,{ref:n,className:jn("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-destructive/30 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));KC.displayName=fg.displayName;const yg=he.forwardRef(({className:e,...t},n)=>x.jsx(pg,{ref:n,className:jn("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:x.jsx(WC,{className:"h-4 w-4"})}));yg.displayName=pg.displayName;const vg=he.forwardRef(({className:e,...t},n)=>x.jsx(cg,{ref:n,className:jn("text-sm font-semibold",e),...t}));vg.displayName=cg.displayName;const xg=he.forwardRef(({className:e,...t},n)=>x.jsx(dg,{ref:n,className:jn("text-sm opacity-90",e),...t}));xg.displayName=dg.displayName;const QC=1;let qs=0;function YC(){return qs=(qs+1)%Number.MAX_VALUE,qs.toString()}const ke={state:{toasts:[]},listeners:[],getState:()=>ke.state,setState:e=>{typeof e=="function"?ke.state=e(ke.state):ke.state={...ke.state,...e},ke.listeners.forEach(t=>t(ke.state))},subscribe:e=>(ke.listeners.push(e),()=>{ke.listeners=ke.listeners.filter(t=>t!==e)})},XC=({...e})=>{const t=YC(),n=o=>ke.setState(i=>({...i,toasts:i.toasts.map(s=>s.id===t?{...s,...o}:s)})),r=()=>ke.setState(o=>({...o,toasts:o.toasts.filter(i=>i.id!==t)}));return ke.setState(o=>({...o,toasts:[{...e,id:t,dismiss:r},...o.toasts].slice(0,QC)})),{id:t,dismiss:r,update:n}};function wg(){const[e,t]=S.useState(ke.getState());return S.useEffect(()=>ke.subscribe(r=>{t(r)}),[]),S.useEffect(()=>{const n=[];return e.toasts.forEach(r=>{if(r.duration===1/0)return;const o=setTimeout(()=>{r.dismiss()},r.duration||5e3);n.push(o)}),()=>{n.forEach(r=>clearTimeout(r))}},[e.toasts]),{toast:XC,toasts:e.toasts}}function ZC(){const{toasts:e}=wg();return x.jsxs(HC,{children:[e.map(({id:t,title:n,description:r,action:o,...i})=>x.jsxs(gg,{...i,children:[x.jsxs("div",{className:"grid gap-1",children:[n&&x.jsx(vg,{children:n}),r&&x.jsx(xg,{children:r})]}),o,x.jsx(yg,{})]},t)),x.jsx(mg,{})]})}const qC=hg("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),jr=he.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const s=r?IS:"button";return x.jsx(s,{className:jn(qC({variant:t,size:n,className:e})),ref:i,...o})});jr.displayName="Button";const JC=()=>{const{toast:e}=wg(),[t,n]=S.useState(!1),r=()=>{navigator.clipboard.writeText("your.email@example.com"),n(!0),e({title:"Email copied!",description:"Email address copied to clipboard"}),setTimeout(()=>n(!1),2e3)},o={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1,delayChildren:.2}}},i={hidden:{y:20,opacity:0},visible:{y:0,opacity:1,transition:{type:"spring",stiffness:100}}},s=[{icon:x.jsx(DC,{className:"h-8 w-8 mb-4 text-indigo-500"}),title:"Web Development",description:"Custom websites and web applications built with modern technologies."},{icon:x.jsx(RC,{className:"h-8 w-8 mb-4 text-indigo-500"}),title:"Business Consulting",description:"Strategic advice to help your business grow and succeed."},{icon:x.jsx(zC,{className:"h-8 w-8 mb-4 text-indigo-500"}),title:"Graphic Design",description:"Eye-catching visuals that communicate your brand message."},{icon:x.jsx(jC,{className:"h-8 w-8 mb-4 text-indigo-500"}),title:"Photography",description:"Professional photography services for products, events, and more."},{icon:x.jsx(UC,{className:"h-8 w-8 mb-4 text-indigo-500"}),title:"Mobile Development",description:"Native and cross-platform mobile applications for iOS and Android."},{icon:x.jsx(VC,{className:"h-8 w-8 mb-4 text-indigo-500"}),title:"Data Analysis",description:"Turning your data into actionable insights and visualizations."}];return x.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-gray-900 to-gray-800 text-white",children:[x.jsx(ZC,{}),x.jsxs("section",{className:"relative overflow-hidden",children:[x.jsxs("div",{className:"absolute top-0 left-0 w-full h-full overflow-hidden z-0",children:[x.jsx("div",{className:"absolute top-10 left-10 w-72 h-72 bg-indigo-600 rounded-full mix-blend-multiply filter blur-3xl opacity-20 animate-float"}),x.jsx("div",{className:"absolute bottom-10 right-10 w-72 h-72 bg-purple-600 rounded-full mix-blend-multiply filter blur-3xl opacity-20 animate-float",style:{animationDelay:"2s"}})]}),x.jsxs("div",{className:"container mx-auto px-4 py-20 md:py-32 relative z-10",children:[x.jsxs(ae.div,{className:"flex flex-col items-center text-center",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},children:[x.jsx(ae.div,{className:"w-32 h-32 rounded-full overflow-hidden mb-6 border-4 border-indigo-500 shadow-lg",whileHover:{scale:1.05},transition:{type:"spring",stiffness:300},children:x.jsx("img",{alt:"Professional headshot",src:"https://images.unsplash.com/photo-1544212408-c711b7c19b92"})}),x.jsx(ae.h1,{className:"text-4xl md:text-6xl font-bold mb-4",initial:{opacity:0},animate:{opacity:1},transition:{delay:.2},children:x.jsx("span",{className:"text-gradient",children:"Your Name"})}),x.jsx(ae.p,{className:"text-xl md:text-2xl text-gray-300 mb-8 max-w-2xl",initial:{opacity:0},animate:{opacity:1},transition:{delay:.3},children:"I'm a versatile professional who does everything from web development to business consulting."}),x.jsx(ae.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.4},children:x.jsx(jr,{className:"bg-indigo-600 hover:bg-indigo-700 text-white px-8 py-6 rounded-full text-lg font-medium",onClick:()=>{document.getElementById("contact").scrollIntoView({behavior:"smooth"})},children:"Get In Touch"})})]}),x.jsx(ae.div,{className:"absolute bottom-5 left-1/2 transform -translate-x-1/2",initial:{opacity:0},animate:{opacity:1},transition:{delay:.6,duration:1},children:x.jsx(LC,{className:"w-8 h-8 text-white animate-bounce"})})]})]}),x.jsx("section",{className:"py-20 bg-gray-900",children:x.jsxs("div",{className:"container mx-auto px-4",children:[x.jsxs(ae.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},children:[x.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"My Services"}),x.jsx("p",{className:"text-gray-400 max-w-2xl mx-auto",children:"I offer a wide range of professional services to help you achieve your goals."})]}),x.jsx(ae.div,{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",variants:o,initial:"hidden",whileInView:"visible",viewport:{once:!0},children:s.map((l,a)=>x.jsxs(ae.div,{className:"service-card glass-card rounded-xl p-8 flex flex-col items-center text-center",variants:i,whileHover:{scale:1.03,boxShadow:"0px 10px 30px rgba(0, 0, 0, 0.2)"},children:[l.icon,x.jsx("h3",{className:"text-xl font-semibold mb-2",children:l.title}),x.jsx("p",{className:"text-gray-400",children:l.description})]},a))})]})}),x.jsx("section",{className:"py-20 bg-gray-800",children:x.jsx("div",{className:"container mx-auto px-4",children:x.jsxs("div",{className:"flex flex-col lg:flex-row items-center gap-12",children:[x.jsx(ae.div,{className:"lg:w-1/2",initial:{opacity:0,x:-50},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5},children:x.jsxs("div",{className:"relative",children:[x.jsx("div",{className:"absolute -top-4 -left-4 w-full h-full border-2 border-indigo-500 rounded-xl"}),x.jsx("div",{className:"relative rounded-xl overflow-hidden",children:x.jsx("img",{alt:"Professional at work",src:"https://images.unsplash.com/photo-1574311382329-80bcc540bd52"})})]})}),x.jsxs(ae.div,{className:"lg:w-1/2",initial:{opacity:0,x:50},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5},children:[x.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:"About Me"}),x.jsx("p",{className:"text-gray-300 mb-6",children:"I'm a multi-talented professional with over 10 years of experience across various industries. My diverse skill set allows me to tackle any challenge and deliver exceptional results."}),x.jsx("p",{className:"text-gray-300 mb-6",children:"Whether you need a stunning website, strategic business advice, or creative design work, I've got you covered. My goal is to help you succeed by providing comprehensive solutions tailored to your specific needs."}),x.jsxs("div",{className:"grid grid-cols-2 gap-4 mb-8",children:[x.jsxs("div",{children:[x.jsx("h3",{className:"text-lg font-semibold mb-2",children:"Skills"}),x.jsxs("ul",{className:"space-y-2",children:[x.jsxs("li",{className:"flex items-center",children:[x.jsx("div",{className:"w-2 h-2 bg-indigo-500 rounded-full mr-2"}),"Web Development"]}),x.jsxs("li",{className:"flex items-center",children:[x.jsx("div",{className:"w-2 h-2 bg-indigo-500 rounded-full mr-2"}),"Business Strategy"]}),x.jsxs("li",{className:"flex items-center",children:[x.jsx("div",{className:"w-2 h-2 bg-indigo-500 rounded-full mr-2"}),"Graphic Design"]}),x.jsxs("li",{className:"flex items-center",children:[x.jsx("div",{className:"w-2 h-2 bg-indigo-500 rounded-full mr-2"}),"Photography"]})]})]}),x.jsxs("div",{children:[x.jsx("h3",{className:"text-lg font-semibold mb-2",children:"Experience"}),x.jsxs("ul",{className:"space-y-2",children:[x.jsxs("li",{className:"flex items-center",children:[x.jsx("div",{className:"w-2 h-2 bg-indigo-500 rounded-full mr-2"}),"10+ Years Experience"]}),x.jsxs("li",{className:"flex items-center",children:[x.jsx("div",{className:"w-2 h-2 bg-indigo-500 rounded-full mr-2"}),"100+ Projects"]}),x.jsxs("li",{className:"flex items-center",children:[x.jsx("div",{className:"w-2 h-2 bg-indigo-500 rounded-full mr-2"}),"50+ Happy Clients"]}),x.jsxs("li",{className:"flex items-center",children:[x.jsx("div",{className:"w-2 h-2 bg-indigo-500 rounded-full mr-2"}),"20+ Awards"]})]})]})]}),x.jsx(jr,{className:"bg-indigo-600 hover:bg-indigo-700 text-white",children:"Download Resume"})]})]})})}),x.jsx("section",{className:"py-20 bg-gray-900",children:x.jsxs("div",{className:"container mx-auto px-4",children:[x.jsxs(ae.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},children:[x.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"What Clients Say"}),x.jsx("p",{className:"text-gray-400 max-w-2xl mx-auto",children:"Don't just take my word for it. Here's what some of my clients have to say."})]}),x.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:[1,2,3].map(l=>x.jsxs(ae.div,{className:"glass-card rounded-xl p-8",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:l*.1,duration:.5},children:[x.jsxs("div",{className:"flex items-center mb-4",children:[x.jsx("div",{className:"w-12 h-12 rounded-full overflow-hidden mr-4",children:x.jsx("img",{alt:`Client ${l} portrait`,src:"https://images.unsplash.com/photo-1544212408-c711b7c19b92"})}),x.jsxs("div",{children:[x.jsxs("h3",{className:"font-semibold",children:["Client Name ",l]}),x.jsxs("p",{className:"text-sm text-gray-400",children:["CEO, Company ",l]})]})]}),x.jsx("p",{className:"text-gray-300",children:'"Working with this professional was an absolute pleasure. They delivered exceptional results that exceeded our expectations. Their versatility and expertise across multiple domains made them the perfect partner for our project."'})]},l))})]})}),x.jsx("section",{id:"contact",className:"py-20 bg-gray-800",children:x.jsxs("div",{className:"container mx-auto px-4",children:[x.jsxs(ae.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},children:[x.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Get In Touch"}),x.jsx("p",{className:"text-gray-400 max-w-2xl mx-auto",children:"Ready to start your project? Contact me today and let's discuss how I can help you achieve your goals."})]}),x.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12",children:[x.jsxs(ae.div,{className:"glass-card rounded-xl p-8",initial:{opacity:0,x:-50},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5},children:[x.jsx("h3",{className:"text-2xl font-semibold mb-6",children:"Contact Information"}),x.jsxs("div",{className:"space-y-6",children:[x.jsxs("div",{className:"flex items-start",children:[x.jsx(OC,{className:"w-6 h-6 text-indigo-500 mr-4 mt-1"}),x.jsxs("div",{children:[x.jsx("h4",{className:"font-medium mb-1",children:"Email"}),x.jsx("p",{className:"text-gray-400",children:"your.email@example.com"}),x.jsx(jr,{variant:"ghost",size:"sm",className:"mt-1 text-indigo-400 hover:text-indigo-300 p-0",onClick:r,children:t?"Copied!":"Copy email"})]})]}),x.jsxs("div",{className:"flex items-start",children:[x.jsx(BC,{className:"w-6 h-6 text-indigo-500 mr-4 mt-1"}),x.jsxs("div",{children:[x.jsx("h4",{className:"font-medium mb-1",children:"Phone"}),x.jsx("p",{className:"text-gray-400",children:"+1 (555) 123-4567"})]})]}),x.jsxs("div",{className:"flex items-start",children:[x.jsx(FC,{className:"w-6 h-6 text-indigo-500 mr-4 mt-1"}),x.jsxs("div",{children:[x.jsx("h4",{className:"font-medium mb-1",children:"Location"}),x.jsx("p",{className:"text-gray-400",children:"New York City, NY, USA"})]})]})]}),x.jsxs("div",{className:"mt-8",children:[x.jsx("h4",{className:"font-medium mb-4",children:"Connect with me"}),x.jsxs("div",{className:"flex space-x-4",children:[x.jsx(ae.a,{href:"#",className:"w-10 h-10 rounded-full bg-gray-700 flex items-center justify-center hover:bg-indigo-600 transition-colors",whileHover:{scale:1.1},whileTap:{scale:.9},children:x.jsx(IC,{className:"w-5 h-5"})}),x.jsx(ae.a,{href:"#",className:"w-10 h-10 rounded-full bg-gray-700 flex items-center justify-center hover:bg-indigo-600 transition-colors",whileHover:{scale:1.1},whileTap:{scale:.9},children:x.jsx($C,{className:"w-5 h-5"})}),x.jsx(ae.a,{href:"#",className:"w-10 h-10 rounded-full bg-gray-700 flex items-center justify-center hover:bg-indigo-600 transition-colors",whileHover:{scale:1.1},whileTap:{scale:.9},children:x.jsx(_C,{className:"w-5 h-5"})}),x.jsx(ae.a,{href:"#",className:"w-10 h-10 rounded-full bg-gray-700 flex items-center justify-center hover:bg-indigo-600 transition-colors",whileHover:{scale:1.1},whileTap:{scale:.9},children:x.jsx(bC,{className:"w-5 h-5"})})]})]})]}),x.jsxs(ae.div,{className:"glass-card rounded-xl p-8",initial:{opacity:0,x:50},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5},children:[x.jsx("h3",{className:"text-2xl font-semibold mb-6",children:"Send Me a Message"}),x.jsxs("form",{className:"space-y-6",onSubmit:l=>{l.preventDefault(),e({title:"Message sent!",description:"Thank you for your message. I'll get back to you soon."})},children:[x.jsxs("div",{children:[x.jsx("label",{htmlFor:"name",className:"block text-sm font-medium mb-2",children:"Name"}),x.jsx("input",{type:"text",id:"name",className:"w-full px-4 py-3 bg-gray-700 border border-gray-600 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500",placeholder:"Your name",required:!0})]}),x.jsxs("div",{children:[x.jsx("label",{htmlFor:"email",className:"block text-sm font-medium mb-2",children:"Email"}),x.jsx("input",{type:"email",id:"email",className:"w-full px-4 py-3 bg-gray-700 border border-gray-600 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500",placeholder:"Your email",required:!0})]}),x.jsxs("div",{children:[x.jsx("label",{htmlFor:"subject",className:"block text-sm font-medium mb-2",children:"Subject"}),x.jsx("input",{type:"text",id:"subject",className:"w-full px-4 py-3 bg-gray-700 border border-gray-600 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500",placeholder:"Subject",required:!0})]}),x.jsxs("div",{children:[x.jsx("label",{htmlFor:"message",className:"block text-sm font-medium mb-2",children:"Message"}),x.jsx("textarea",{id:"message",rows:"4",className:"w-full px-4 py-3 bg-gray-700 border border-gray-600 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500",placeholder:"Your message",required:!0})]}),x.jsx(jr,{type:"submit",className:"w-full bg-indigo-600 hover:bg-indigo-700 text-white py-3",children:"Send Message"})]})]})]})]})}),x.jsx("footer",{className:"py-8 bg-gray-900 border-t border-gray-800",children:x.jsx("div",{className:"container mx-auto px-4",children:x.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center",children:[x.jsxs("p",{className:"text-gray-400 mb-4 md:mb-0",children:["© ",new Date().getFullYear()," Your Name. All rights reserved."]}),x.jsxs("div",{className:"flex space-x-6",children:[x.jsx("a",{href:"#",className:"text-gray-400 hover:text-white transition-colors",children:"Privacy Policy"}),x.jsx("a",{href:"#",className:"text-gray-400 hover:text-white transition-colors",children:"Terms of Service"})]})]})})})]})};Js.createRoot(document.getElementById("root")).render(x.jsx(he.StrictMode,{children:x.jsx(JC,{})}));